| | | 1 | | using Elsa.Workflows.Models; |
| | | 2 | | |
| | | 3 | | namespace Elsa.Workflows.Runtime.Messages; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Represents a response from running a workflow instance. |
| | | 7 | | /// </summary> |
| | | 8 | | public record RunWorkflowInstanceResponse |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// The ID of the workflow instance, or <see langword="null"/> when <see cref="CannotStart"/> is <see langword="true |
| | | 12 | | /// </summary> |
| | 357 | 13 | | public string WorkflowInstanceId { get; set; } = null!; |
| | | 14 | | |
| | | 15 | | /// <summary> |
| | | 16 | | /// The status of the workflow instance. |
| | | 17 | | /// </summary> |
| | 305 | 18 | | public WorkflowStatus Status { get; set; } |
| | | 19 | | |
| | | 20 | | /// <summary> |
| | | 21 | | /// The sub-status of the workflow instance. |
| | | 22 | | /// </summary> |
| | 253 | 23 | | public WorkflowSubStatus SubStatus { get; set; } |
| | | 24 | | |
| | 566 | 25 | | public ICollection<Bookmark> Bookmarks { get; set; } = new List<Bookmark>(); |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// Any incidents that occurred during the execution of the workflow instance. |
| | | 29 | | /// </summary> |
| | 572 | 30 | | public ICollection<ActivityIncident> Incidents { get; set; } = new List<ActivityIncident>(); |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// The output produced by the workflow instance. |
| | | 34 | | /// </summary> |
| | 212 | 35 | | public IDictionary<string, object>? Output { get; set; } |
| | | 36 | | |
| | | 37 | | /// <summary> |
| | | 38 | | /// When <c>true</c>, the workflow's activation strategy refused to create a new instance. |
| | | 39 | | /// No instance was persisted. Other fields are unset. |
| | | 40 | | /// </summary> |
| | 91 | 41 | | public bool CannotStart { get; set; } |
| | | 42 | | } |