| | | 1 | | namespace Elsa.Workflows.Runtime.Requests; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Represents a dispatch request to trigger all workflows using the provided information. |
| | | 5 | | /// </summary> |
| | | 6 | | /// <param name="activityTypeName">The type name of the activity to trigger.</param> |
| | | 7 | | /// <param name="bookmarkPayload">AnyAsync bookmark payload to use to find the workflows to trigger.</param> |
| | 0 | 8 | | public class DispatchTriggerWorkflowsRequest(string activityTypeName, object bookmarkPayload) |
| | | 9 | | { |
| | | 10 | | /// <summary>The type name of the activity to trigger.</summary> |
| | 0 | 11 | | public string ActivityTypeName { get; init; } = activityTypeName; |
| | | 12 | | |
| | | 13 | | /// <summary>AnyAsync bookmark payload to use to find the workflows to trigger.</summary> |
| | 0 | 14 | | public object BookmarkPayload { get; init; } = bookmarkPayload; |
| | | 15 | | |
| | | 16 | | /// <summary>AnyAsync correlation ID to use to find the workflows to trigger.</summary> |
| | 0 | 17 | | public string? CorrelationId { get; set; } |
| | | 18 | | |
| | 0 | 19 | | public string? WorkflowInstanceId { get; set; } |
| | 0 | 20 | | public string? ActivityInstanceId { get; set; } |
| | | 21 | | |
| | | 22 | | /// <summary>Any input to send along.</summary> |
| | 0 | 23 | | public IDictionary<string, object>? Input { get; set; } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// Any properties to attach to the workflow instance. |
| | | 27 | | /// </summary> |
| | 0 | 28 | | public IDictionary<string, object>? Properties { get; set; } |
| | | 29 | | } |