| | | 1 | | using Elsa.Workflows.Memory; |
| | | 2 | | |
| | | 3 | | namespace Elsa.Workflows.Options; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Represents options for scheduling a work item. |
| | | 7 | | /// </summary> |
| | | 8 | | public class ScheduleWorkOptions |
| | | 9 | | { |
| | | 10 | | /// <summary>The callback to invoke when the work item has completed.</summary> |
| | 7916 | 11 | | public ActivityCompletionCallback? CompletionCallback { get; set; } |
| | | 12 | | |
| | | 13 | | /// <summary>A tag that can be used to identify the work item.</summary> |
| | 5310 | 14 | | public object? Tag { get; set; } |
| | | 15 | | |
| | | 16 | | /// <summary>A collection of variables to declare in the activity execution context that will be created for this wo |
| | 5312 | 17 | | public ICollection<Variable>? Variables { get; set; } |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// An existing activity execution context to use instead of creating a new one. |
| | | 21 | | /// </summary> |
| | 2594 | 22 | | public ActivityExecutionContext? ExistingActivityExecutionContext { get; set; } |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// A flag indicating whether the work item should be scheduled even if a work item with the same tag already exists |
| | | 26 | | /// </summary> |
| | 2581 | 27 | | public bool PreventDuplicateScheduling { get; set; } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Input to send to the workflow. |
| | | 31 | | /// </summary> |
| | 2593 | 32 | | public IDictionary<string, object>? Input { get; set; } |
| | | 33 | | } |