using Elsa.Mediator.Contracts;
namespace Elsa.Workflows.Runtime.Notifications;
///
/// A domain event that applications can subscribe to in order to handle tasks requested by a workflow.
///
/// The context of the activity that requested the task to run.
/// A unique identifier for an individual task request.
/// The name of the task requested to run.
/// Any additional parameters to send to the task.
public record RunTaskRequest(ActivityExecutionContext ActivityExecutionContext, string TaskId, string TaskName, IDictionary? TaskPayload) : INotification;