| | | 1 | | using Elsa.Api.Client.Resources.WorkflowInstances.Enums; |
| | | 2 | | using Elsa.Api.Client.Shared.Models; |
| | | 3 | | |
| | | 4 | | namespace Elsa.Api.Client.Resources.WorkflowInstances.Models; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Represents a workflow instance. |
| | | 8 | | /// </summary> |
| | | 9 | | public class WorkflowInstance : Entity |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// The ID of the workflow definition. |
| | | 13 | | /// </summary> |
| | 0 | 14 | | public string DefinitionId { get; set; } = default!; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// The version ID of the workflow definition. |
| | | 18 | | /// </summary> |
| | 0 | 19 | | public string DefinitionVersionId { get; set; } = default!; |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// The version of the workflow definition. |
| | | 23 | | /// </summary> |
| | 0 | 24 | | public int Version { get; set; } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// The state of the workflow instance. |
| | | 28 | | /// </summary> |
| | 0 | 29 | | public WorkflowState WorkflowState { get; set; } = default!; |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// The status of the workflow instance. |
| | | 33 | | /// </summary> |
| | 0 | 34 | | public WorkflowStatus Status { get; set; } |
| | | 35 | | |
| | | 36 | | /// <summary> |
| | | 37 | | /// The sub-status of the workflow instance. |
| | | 38 | | /// </summary> |
| | 0 | 39 | | public WorkflowSubStatus SubStatus { get; set; } |
| | | 40 | | |
| | | 41 | | /// <summary> |
| | | 42 | | /// The ID of the workflow instance. |
| | | 43 | | /// </summary> |
| | 0 | 44 | | public string? CorrelationId { get; set; } |
| | | 45 | | |
| | | 46 | | /// <summary> |
| | | 47 | | /// The name of the workflow instance. |
| | | 48 | | /// </summary> |
| | 0 | 49 | | public string? Name { get; set; } |
| | | 50 | | |
| | | 51 | | /// <summary> |
| | | 52 | | /// The number of incidents that have occurred during execution, if any. |
| | | 53 | | /// </summary> |
| | 0 | 54 | | public int IncidentCount { get; set; } |
| | | 55 | | |
| | | 56 | | /// <summary> |
| | | 57 | | /// The timestamp when the workflow instance was created. |
| | | 58 | | /// </summary> |
| | 0 | 59 | | public DateTimeOffset CreatedAt { get; set; } |
| | | 60 | | |
| | | 61 | | /// <summary> |
| | | 62 | | /// The timestamp when the workflow instance was last executed. |
| | | 63 | | /// </summary> |
| | 0 | 64 | | public DateTimeOffset UpdatedAt { get; set; } |
| | | 65 | | |
| | | 66 | | /// <summary> |
| | | 67 | | /// The timestamp when the workflow instance was finished. |
| | | 68 | | /// </summary> |
| | 0 | 69 | | public DateTimeOffset? FinishedAt { get; set; } |
| | | 70 | | } |