| | | 1 | | using Elsa.Workflows.Memory; |
| | | 2 | | |
| | | 3 | | namespace Elsa.Workflows.State; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// A serialized representation of an activity work item. |
| | | 7 | | /// </summary> |
| | | 8 | | public class ActivityWorkItemState |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// The ID of the activity to be executed. |
| | | 12 | | /// </summary> |
| | 4 | 13 | | public string ActivityNodeId { get; set; } = default!; |
| | | 14 | | |
| | | 15 | | /// <summary> |
| | | 16 | | /// The ID of the parent activity execution context, if any. |
| | | 17 | | /// </summary> |
| | 4 | 18 | | public string? OwnerContextId { get; set; } |
| | | 19 | | |
| | | 20 | | /// <summary> |
| | | 21 | | /// A tag that can be used to identify the work item. |
| | | 22 | | /// </summary> |
| | 4 | 23 | | public object? Tag { get; set; } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// A set of variables to be created as part of the activity execution context, if any. |
| | | 27 | | /// </summary> |
| | 4 | 28 | | public ICollection<Variable>? Variables { get; set; } |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// The ID of an existing activity execution context to schedule, if any. |
| | | 32 | | /// </summary> |
| | 4 | 33 | | public string? ExistingActivityExecutionContextId { get; set; } |
| | | 34 | | |
| | | 35 | | /// <summary> |
| | | 36 | | /// Optional input to pass to the activity. |
| | | 37 | | /// </summary> |
| | 6 | 38 | | public IDictionary<string, object> Input { get; set; } = new Dictionary<string, object>(); |
| | | 39 | | |
| | | 40 | | /// <summary> |
| | | 41 | | /// The ID of the activity execution context that scheduled this work item. |
| | | 42 | | /// </summary> |
| | 4 | 43 | | public string? SchedulingActivityExecutionId { get; set; } |
| | | 44 | | |
| | | 45 | | /// <summary> |
| | | 46 | | /// The workflow instance ID of the workflow that scheduled this work item, if it crossed a workflow boundary. |
| | | 47 | | /// </summary> |
| | 4 | 48 | | public string? SchedulingWorkflowInstanceId { get; set; } |
| | | 49 | | |
| | | 50 | | /// <summary> |
| | | 51 | | /// The call stack depth of the activity execution context that scheduled this work item. |
| | | 52 | | /// </summary> |
| | 4 | 53 | | public int? SchedulingCallStackDepth { get; set; } |
| | | 54 | | } |