| | | 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> |
| | 0 | 13 | | public string ActivityNodeId { get; set; } = default!; |
| | | 14 | | |
| | | 15 | | /// <summary> |
| | | 16 | | /// The ID of the parent activity execution context, if any. |
| | | 17 | | /// </summary> |
| | 0 | 18 | | public string? OwnerContextId { get; set; } |
| | | 19 | | |
| | | 20 | | /// <summary> |
| | | 21 | | /// A tag that can be used to identify the work item. |
| | | 22 | | /// </summary> |
| | 0 | 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> |
| | 0 | 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> |
| | 0 | 33 | | public string? ExistingActivityExecutionContextId { get; set; } |
| | | 34 | | |
| | | 35 | | /// <summary> |
| | | 36 | | /// Optional input to pass to the activity. |
| | | 37 | | /// </summary> |
| | 0 | 38 | | public IDictionary<string, object> Input { get; set; } = new Dictionary<string, object>(); |
| | | 39 | | } |