| | | 1 | | namespace Elsa.Workflows.Signals; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Signaled when the scheduling of a child activity was requested. |
| | | 5 | | /// </summary> |
| | | 6 | | public class ScheduleChildActivity |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Signaled when the scheduling of a child activity was requested. |
| | | 10 | | /// </summary> |
| | | 11 | | /// <param name="activity">The child activity to schedule.</param> |
| | | 12 | | /// <param name="input">Input to pass to the child activity.</param> |
| | 0 | 13 | | public ScheduleChildActivity(IActivity activity, IDictionary<string, object>? input = default) |
| | | 14 | | { |
| | 0 | 15 | | Activity = activity; |
| | 0 | 16 | | Input = input; |
| | 0 | 17 | | } |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// Signaled when the scheduling of a child activity was requested. |
| | | 21 | | /// </summary> |
| | | 22 | | /// <param name="activityExecutionContext">The child activity execution context to schedule.</param> |
| | | 23 | | /// <param name="input">The scheduling options.</param> |
| | 0 | 24 | | public ScheduleChildActivity(ActivityExecutionContext? activityExecutionContext, IDictionary<string, object>? input |
| | | 25 | | { |
| | 0 | 26 | | ActivityExecutionContext = activityExecutionContext; |
| | 0 | 27 | | Input = input; |
| | 0 | 28 | | } |
| | | 29 | | |
| | | 30 | | /// <summary>The child activity to schedule.</summary> |
| | 0 | 31 | | public IActivity? Activity { get; init; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Input to pass to the child activity. |
| | | 35 | | /// </summary> |
| | 0 | 36 | | public IDictionary<string, object>? Input { get; set;} |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// The child activity execution context to schedule. |
| | | 40 | | /// </summary> |
| | 0 | 41 | | public ActivityExecutionContext? ActivityExecutionContext { get; init; } |
| | | 42 | | } |