| | | 1 | | using Elsa.Workflows.Runtime.Commands; |
| | | 2 | | |
| | | 3 | | namespace Elsa.Workflows.Runtime.Models; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// A durable workflow dispatch command waiting for delivery. |
| | | 7 | | /// </summary> |
| | | 8 | | public class WorkflowDispatchOutboxItem |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// The outbox item ID. |
| | | 12 | | /// </summary> |
| | 353 | 13 | | public string Id { get; set; } = null!; |
| | | 14 | | |
| | | 15 | | /// <summary> |
| | | 16 | | /// The workflow instance whose committed state must reference this item before it can be delivered. |
| | | 17 | | /// </summary> |
| | 90 | 18 | | public string OwnerWorkflowInstanceId { get; set; } = null!; |
| | | 19 | | |
| | | 20 | | /// <summary> |
| | | 21 | | /// The tenant ID captured when the item was enqueued. |
| | | 22 | | /// </summary> |
| | 54 | 23 | | public string? TenantId { get; set; } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// The kind of dispatch command stored by this item. |
| | | 27 | | /// </summary> |
| | 56 | 28 | | public WorkflowDispatchOutboxItemKind Kind { get; set; } |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// When the item was created. |
| | | 32 | | /// </summary> |
| | 111 | 33 | | public DateTimeOffset CreatedAt { get; set; } |
| | | 34 | | |
| | | 35 | | /// <summary> |
| | | 36 | | /// The number of failed delivery attempts. |
| | | 37 | | /// </summary> |
| | 22 | 38 | | public int DeliveryAttempts { get; set; } |
| | | 39 | | |
| | | 40 | | /// <summary> |
| | | 41 | | /// A workflow definition dispatch command. |
| | | 42 | | /// </summary> |
| | 75 | 43 | | public DispatchWorkflowDefinitionCommand? WorkflowDefinitionCommand { get; set; } |
| | | 44 | | |
| | | 45 | | /// <summary> |
| | | 46 | | /// A workflow instance dispatch command. |
| | | 47 | | /// </summary> |
| | 0 | 48 | | public DispatchWorkflowInstanceCommand? WorkflowInstanceCommand { get; set; } |
| | | 49 | | |
| | | 50 | | /// <summary> |
| | | 51 | | /// A trigger workflow dispatch command. |
| | | 52 | | /// </summary> |
| | 0 | 53 | | public DispatchTriggerWorkflowsCommand? TriggerWorkflowsCommand { get; set; } |
| | | 54 | | |
| | | 55 | | /// <summary> |
| | | 56 | | /// A resume workflows dispatch command. |
| | | 57 | | /// </summary> |
| | 0 | 58 | | public DispatchResumeWorkflowsCommand? ResumeWorkflowsCommand { get; set; } |
| | | 59 | | } |