| | | 1 | | namespace Elsa.Workflows.Runtime.Parameters; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Represents options for starting a workflow host. |
| | | 5 | | /// </summary> |
| | | 6 | | public class StartWorkflowHostParams |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// An optional workflow instance ID. If not specified, a new ID will be generated. |
| | | 10 | | /// </summary> |
| | 0 | 11 | | public string? InstanceId { get; set; } |
| | | 12 | | |
| | | 13 | | /// <summary> |
| | | 14 | | /// Indicates whether the workflow instance to start is a new instance or an existing one. |
| | | 15 | | /// </summary> |
| | 0 | 16 | | public bool IsExistingInstance { get; set; } |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// An optional correlation ID. |
| | | 20 | | /// </summary> |
| | 0 | 21 | | public string? CorrelationId { get; set; } |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// Optional input to pass to the workflow instance. |
| | | 25 | | /// </summary> |
| | 0 | 26 | | public IDictionary<string, object>? Input { get; set; } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// Any properties to attach to the workflow instance. |
| | | 30 | | /// </summary> |
| | 0 | 31 | | public IDictionary<string, object>? Properties { get; set; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// The ID of the activity that triggered the workflow instance. |
| | | 35 | | /// </summary> |
| | 0 | 36 | | public string? TriggerActivityId { get; set; } |
| | | 37 | | |
| | | 38 | | /// <summary>Cancellation tokens that can be used to cancel the workflow instance without cancelling system-level op |
| | 0 | 39 | | public CancellationToken CancellationToken { get; set; } |
| | | 40 | | |
| | | 41 | | /// <summary> |
| | | 42 | | /// Callback method that will be called when the status of the workflow has been updated |
| | | 43 | | /// </summary> |
| | 0 | 44 | | public Action<WorkflowExecutionContext>? StatusUpdatedCallback { get; set; } |
| | | 45 | | |
| | | 46 | | /// <summary> |
| | | 47 | | /// The ID of the parent workflow instance. |
| | | 48 | | /// </summary> |
| | 0 | 49 | | public string? ParentWorkflowInstanceId { get; set; } |
| | | 50 | | } |