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