| | | 1 | | using Elsa.Mediator.Contracts; |
| | | 2 | | using Elsa.Mediator.Models; |
| | | 3 | | |
| | | 4 | | namespace Elsa.Workflows.Runtime.Commands; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Dispatches a workflow definition. |
| | | 8 | | /// </summary> |
| | 84 | 9 | | public class DispatchWorkflowDefinitionCommand(string definitionVersionId) : ICommand<Unit> |
| | | 10 | | { |
| | 112 | 11 | | public string DefinitionVersionId { get; init; } = definitionVersionId; |
| | 61 | 12 | | public string? ParentWorkflowInstanceId { get; init; } |
| | 61 | 13 | | public IDictionary<string, object>? Input { get; set; } |
| | 61 | 14 | | public IDictionary<string, object>? Properties { get; set; } |
| | 61 | 15 | | public string? CorrelationId { get; set; } |
| | 95 | 16 | | public string? InstanceId { get; set; } |
| | 61 | 17 | | public string? TriggerActivityId { get; set; } |
| | 61 | 18 | | public string? SchedulingActivityExecutionId { get; set; } |
| | 61 | 19 | | public string? SchedulingWorkflowInstanceId { get; set; } |
| | 61 | 20 | | public int? SchedulingCallStackDepth { get; set; } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// When set, creating the workflow instance is skipped if <see cref="InstanceId"/> already exists. |
| | | 24 | | /// </summary> |
| | 73 | 25 | | public bool SkipIfInstanceExists { get; set; } |
| | | 26 | | } |