| | | 1 | | using Elsa.Api.Client.Resources.WorkflowInstances.Enums; |
| | | 2 | | using JetBrains.Annotations; |
| | | 3 | | |
| | | 4 | | namespace Elsa.Api.Client.Resources.WorkflowInstances.Models; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Represents a summary view of a <see cref="WorkflowInstance"/>. |
| | | 8 | | /// </summary> |
| | | 9 | | [PublicAPI] |
| | | 10 | | public record WorkflowInstanceSummary |
| | | 11 | | { |
| | | 12 | | /// <summary>The ID of the workflow instance.</summary> |
| | 0 | 13 | | public string Id { get; set; } = default!; |
| | | 14 | | |
| | | 15 | | /// <summary>The ID of the workflow definition.</summary> |
| | 0 | 16 | | public string DefinitionId { get; set; } = default!; |
| | | 17 | | |
| | | 18 | | /// <summary>The version ID of the workflow definition.</summary> |
| | 0 | 19 | | public string DefinitionVersionId { get; set; } = default!; |
| | | 20 | | |
| | | 21 | | /// <summary>The version of the workflow definition.</summary> |
| | 0 | 22 | | public int Version { get; set; } |
| | | 23 | | |
| | | 24 | | /// <summary>The status of the workflow instance.</summary> |
| | 0 | 25 | | public WorkflowStatus Status { get; set; } |
| | | 26 | | |
| | | 27 | | /// <summary>The sub-status of the workflow instance.</summary> |
| | 0 | 28 | | public WorkflowSubStatus SubStatus { get; set; } |
| | | 29 | | |
| | | 30 | | /// <summary>The ID of the workflow instance.</summary> |
| | 0 | 31 | | public string? CorrelationId { get; set; } |
| | | 32 | | |
| | | 33 | | /// <summary>The name of the workflow instance.</summary> |
| | 0 | 34 | | public string? Name { get; set; } |
| | | 35 | | |
| | | 36 | | /// <summary> |
| | | 37 | | /// The number of incidents that have occurred during execution, if any. |
| | | 38 | | /// </summary> |
| | 0 | 39 | | public int IncidentCount { get; set; } |
| | | 40 | | |
| | | 41 | | /// <summary>The timestamp when the workflow instance was created.</summary> |
| | 0 | 42 | | public DateTimeOffset CreatedAt { get; set; } |
| | | 43 | | |
| | | 44 | | /// <summary>The timestamp when the workflow instance was last executed.</summary> |
| | 0 | 45 | | public DateTimeOffset UpdatedAt { get; set; } |
| | | 46 | | |
| | | 47 | | /// <summary>The timestamp when the workflow instance was finished.</summary> |
| | 0 | 48 | | public DateTimeOffset? FinishedAt { get; set; } |
| | | 49 | | } |