| | | 1 | | using System.Collections; |
| | | 2 | | using Elsa.Workflows.Activities; |
| | | 3 | | using Elsa.Workflows.Models; |
| | | 4 | | |
| | | 5 | | namespace Elsa.Workflows.Runtime; |
| | | 6 | | |
| | | 7 | | public class StartWorkflowRequest |
| | | 8 | | { |
| | | 9 | | /// <summary> |
| | | 10 | | /// The ID of the workflow definition version to create an instance of. |
| | | 11 | | /// Will be used if <see cref="Workflow"/> is not set. |
| | | 12 | | /// </summary> |
| | 0 | 13 | | public WorkflowDefinitionHandle? WorkflowDefinitionHandle { get; set; } |
| | | 14 | | |
| | | 15 | | /// <summary> |
| | | 16 | | /// The workflow to create an instance of. |
| | | 17 | | /// Will be used if <see cref="WorkflowDefinitionHandle"/> is not set. |
| | | 18 | | /// </summary> |
| | 48 | 19 | | public Workflow? Workflow { get; set; } |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// The correlation ID of the workflow, if any. |
| | | 23 | | /// </summary> |
| | 48 | 24 | | public string? CorrelationId { get; set; } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// The name to use when starting a new workflow instance. |
| | | 28 | | /// </summary> |
| | 27 | 29 | | public string? Name { get; set; } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// The input to the workflow instance, if any. |
| | | 33 | | /// </summary> |
| | 32 | 34 | | public IDictionary<string, object>? Input { get; set; } |
| | | 35 | | |
| | | 36 | | /// <summary> |
| | | 37 | | /// Any variables to set before starting the workflow. |
| | | 38 | | /// </summary> |
| | 32 | 39 | | public IDictionary<string, object>? Variables { get; set; } |
| | | 40 | | |
| | | 41 | | /// <summary> |
| | | 42 | | /// Any properties to assign to the workflow instance. |
| | | 43 | | /// </summary> |
| | 21 | 44 | | public IDictionary<string, object>? Properties { get; set; } |
| | | 45 | | |
| | | 46 | | /// <summary> |
| | | 47 | | /// The ID of the parent workflow instance, if any. |
| | | 48 | | /// </summary> |
| | 21 | 49 | | public string? ParentId { get; set; } |
| | | 50 | | |
| | | 51 | | /// <summary> |
| | | 52 | | /// The ID of the activity that triggered the workflow instance, if any. |
| | | 53 | | /// </summary> |
| | 32 | 54 | | public string? TriggerActivityId { get; set; } |
| | | 55 | | |
| | | 56 | | /// <summary> |
| | | 57 | | /// The handle of the activity to schedule, if any. |
| | | 58 | | /// </summary> |
| | 27 | 59 | | public ActivityHandle? ActivityHandle { get; set; } |
| | | 60 | | } |