2023-03-03 21:47:23 +00:00
|
|
|
using Elsa.Mediator.Contracts;
|
2023-01-04 19:36:38 +00:00
|
|
|
|
|
|
|
|
namespace Elsa.Workflows.Runtime.Notifications;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A domain event that applications can subscribe to in order to handle tasks requested by a workflow.
|
|
|
|
|
/// </summary>
|
2023-04-23 18:03:52 +00:00
|
|
|
/// <param>name="ActivityExecutionContext">The context of the activity that requested the task to run.</param>
|
2023-01-04 19:36:38 +00:00
|
|
|
/// <param name="TaskId">A unique identifier for an individual task request.</param>
|
|
|
|
|
/// <param name="TaskName">The name of the task requested to run.</param>
|
2023-04-23 18:03:52 +00:00
|
|
|
/// <param name="TaskPayload">Any additional parameters to send to the task.</param>
|
|
|
|
|
public record RunTaskRequest(ActivityExecutionContext ActivityExecutionContext, string TaskId, string TaskName, IDictionary<string, object>? TaskPayload) : INotification;
|