| | | 1 | | using Elsa.Api.Client.Resources.Alterations.Enums; |
| | | 2 | | using Elsa.Api.Client.Shared.Models; |
| | | 3 | | |
| | | 4 | | namespace Elsa.Api.Client.Resources.Alterations.Models; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Represents the execution of the plan for an individual workflow instance. |
| | | 8 | | /// </summary> |
| | | 9 | | public class AlterationJob : Entity |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// The ID of the plan that this job belongs to. |
| | | 13 | | /// </summary> |
| | 0 | 14 | | public string PlanId { get; set; } = default!; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// The ID of the workflow instance that this job applies to. |
| | | 18 | | /// </summary> |
| | 0 | 19 | | public string WorkflowInstanceId { get; set; } = default!; |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// The status of the job. |
| | | 23 | | /// </summary> |
| | 0 | 24 | | public AlterationJobStatus Status { get; set; } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// The serialized log of the job. |
| | | 28 | | /// </summary> |
| | 0 | 29 | | public ICollection<AlterationLogEntry>? Log { get; set; } = new List<AlterationLogEntry>(); |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// The date and time at which the job was created. |
| | | 33 | | /// </summary> |
| | 0 | 34 | | public DateTimeOffset CreatedAt { get; set; } |
| | | 35 | | |
| | | 36 | | /// <summary> |
| | | 37 | | /// The date and time at which the job was started. |
| | | 38 | | /// </summary> |
| | 0 | 39 | | public DateTimeOffset? StartedAt { get; set; } |
| | | 40 | | |
| | | 41 | | /// <summary> |
| | | 42 | | /// The date and time at which the job was completed. |
| | | 43 | | /// </summary> |
| | 0 | 44 | | public DateTimeOffset? CompletedAt { get; set; } |
| | | 45 | | } |