| | | 1 | | using Elsa.Workflows.Models; |
| | | 2 | | using JetBrains.Annotations; |
| | | 3 | | |
| | | 4 | | namespace Elsa.Workflows.Runtime.Messages; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// A request to run a workflow instance. |
| | | 8 | | /// </summary> |
| | | 9 | | [UsedImplicitly] |
| | | 10 | | public class RunWorkflowInstanceRequest |
| | | 11 | | { |
| | | 12 | | /// <summary> |
| | | 13 | | /// The ID of the activity that triggered the workflow instance, if any. |
| | | 14 | | /// </summary> |
| | 258 | 15 | | public string? TriggerActivityId { get; set; } |
| | | 16 | | |
| | | 17 | | /// <summary> |
| | | 18 | | /// The ID of the bookmark that triggered the workflow instance, if any. |
| | | 19 | | /// </summary> |
| | 204 | 20 | | public string? BookmarkId { get; set; } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// The handle of the activity to schedule, if any. |
| | | 24 | | /// </summary> |
| | 269 | 25 | | public ActivityHandle? ActivityHandle { get; set; } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// Any additional properties to associate with the workflow instance. |
| | | 29 | | /// </summary> |
| | 289 | 30 | | public IDictionary<string, object>? Properties { get; set; } |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// The input to the workflow instance, if any. |
| | | 34 | | /// </summary> |
| | 294 | 35 | | public IDictionary<string, object>? Input { get; set; } |
| | | 36 | | |
| | | 37 | | /// <summary> |
| | | 38 | | /// A collection of variables to be used during the execution of a workflow instance. |
| | | 39 | | /// </summary> |
| | 258 | 40 | | public IDictionary<string, object>? Variables { get; set; } |
| | | 41 | | |
| | | 42 | | /// <summary> |
| | | 43 | | /// When set to <c>true</c>, include workflow output in the response. |
| | | 44 | | /// </summary> |
| | 258 | 45 | | public bool IncludeWorkflowOutput { get; set; } |
| | | 46 | | |
| | | 47 | | /// <summary> |
| | | 48 | | /// Represents an empty <see cref="RunWorkflowInstanceRequest"/> object used as a default value. |
| | | 49 | | /// </summary> |
| | 24 | 50 | | public static RunWorkflowInstanceRequest Empty => new(); |
| | | 51 | | } |