| | | 1 | | using Elsa.Workflows.Models; |
| | | 2 | | using JetBrains.Annotations; |
| | | 3 | | |
| | | 4 | | namespace Elsa.Workflows.Runtime.Messages; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// A request to create and run a new workflow instance. |
| | | 8 | | /// </summary> |
| | | 9 | | [UsedImplicitly] |
| | | 10 | | public class CreateAndRunWorkflowInstanceRequest |
| | | 11 | | { |
| | | 12 | | /// <summary> |
| | | 13 | | /// The ID of the workflow definition version to create an instance of. |
| | | 14 | | /// </summary> |
| | 192 | 15 | | public WorkflowDefinitionHandle WorkflowDefinitionHandle { get; set; } = null!; |
| | | 16 | | |
| | | 17 | | /// <summary> |
| | | 18 | | /// The correlation ID of the workflow, if any. |
| | | 19 | | /// </summary> |
| | 176 | 20 | | public string? CorrelationId { get; set; } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// The name of the workflow instance to be created. |
| | | 24 | | /// </summary> |
| | 112 | 25 | | public string? Name { get; set; } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// The input to the workflow instance, if any. |
| | | 29 | | /// </summary> |
| | 272 | 30 | | public IDictionary<string, object>? Input { get; set; } |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// A collection of custom variables used within the workflow instance. |
| | | 34 | | /// </summary> |
| | 112 | 35 | | public IDictionary<string, object>? Variables { get; set; } |
| | | 36 | | |
| | | 37 | | /// <summary> |
| | | 38 | | /// Any properties to assign to the workflow instance. |
| | | 39 | | /// </summary> |
| | 231 | 40 | | public IDictionary<string, object>? Properties { get; set; } |
| | | 41 | | |
| | | 42 | | /// <summary> |
| | | 43 | | /// The ID of the parent workflow instance, if any. |
| | | 44 | | /// </summary> |
| | 135 | 45 | | public string? ParentId { get; set; } |
| | | 46 | | |
| | | 47 | | /// <summary> |
| | | 48 | | /// The ID of the activity that triggered the workflow instance, if any. |
| | | 49 | | /// </summary> |
| | 135 | 50 | | public string? TriggerActivityId { get; set; } |
| | | 51 | | |
| | | 52 | | /// <summary> |
| | | 53 | | /// The handle of the activity to schedule, if any. |
| | | 54 | | /// </summary> |
| | 112 | 55 | | public ActivityHandle? ActivityHandle { get; set; } |
| | | 56 | | |
| | | 57 | | /// <summary> |
| | | 58 | | /// When set to <c>true</c>, include workflow output in the response. |
| | | 59 | | /// </summary> |
| | 96 | 60 | | public bool IncludeWorkflowOutput { get; set; } |
| | | 61 | | } |