| | | 1 | | using Elsa.Mediator.Contracts; |
| | | 2 | | using Elsa.Mediator.Models; |
| | | 3 | | |
| | | 4 | | namespace Elsa.Workflows.Runtime.Commands; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Represents a command that dispatches a workflow instance. |
| | | 8 | | /// </summary> |
| | | 9 | | /// <param name="activityTypeName">The name of the activity type to dispatch.</param> |
| | | 10 | | /// <param name="stimulus">The payload to match the bookmark.</param> |
| | 0 | 11 | | public class DispatchResumeWorkflowsCommand(string activityTypeName, object stimulus) : ICommand<Unit> |
| | | 12 | | { |
| | | 13 | | /// <summary>The name of the activity type to dispatch.</summary> |
| | 0 | 14 | | public string ActivityTypeName { get; init; } = activityTypeName; |
| | | 15 | | |
| | | 16 | | /// <summary>The payload to match the bookmark.</summary> |
| | 0 | 17 | | public object Stimulus { get; init; } = stimulus; |
| | | 18 | | |
| | | 19 | | /// <summary>The correlation ID of the workflow instance to dispatch.</summary> |
| | 0 | 20 | | public string? CorrelationId { get; set; } |
| | | 21 | | |
| | | 22 | | /// <summary>The ID of the workflow instance to dispatch.</summary> |
| | 0 | 23 | | public string? WorkflowInstanceId { get; set; } |
| | | 24 | | |
| | | 25 | | /// <summary>The ID of the activity instance to dispatch.</summary> |
| | 0 | 26 | | public string? ActivityInstanceId { get; set; } |
| | | 27 | | |
| | | 28 | | /// <summary>The input to pass to the activity.</summary> |
| | 0 | 29 | | public IDictionary<string, object>? Input { get; set; } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Any properties to attach to the workflow instance. |
| | | 33 | | /// </summary> |
| | 0 | 34 | | public IDictionary<string, object>? Properties { get; set; } |
| | | 35 | | } |