| | | 1 | | using Elsa.Alterations.Core.Contracts; |
| | | 2 | | using Elsa.Alterations.Core.Enums; |
| | | 3 | | using Elsa.Alterations.Core.Models; |
| | | 4 | | using Elsa.Common.Entities; |
| | | 5 | | |
| | | 6 | | namespace Elsa.Alterations.Core.Entities; |
| | | 7 | | |
| | | 8 | | /// <summary> |
| | | 9 | | /// A plan that contains a list of alterations to be applied to a set of workflow instances. |
| | | 10 | | /// </summary> |
| | | 11 | | public class AlterationPlan : Entity |
| | | 12 | | { |
| | | 13 | | /// <summary> |
| | | 14 | | /// The alterations to be applied. |
| | | 15 | | /// </summary> |
| | 0 | 16 | | public ICollection<IAlteration> Alterations { get; set; } = new List<IAlteration>(); |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// The IDs of the workflow instances that this plan applies to. |
| | | 20 | | /// </summary> |
| | 0 | 21 | | public AlterationWorkflowInstanceFilter WorkflowInstanceFilter { get; set; } = new(); |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// The status of the plan. |
| | | 25 | | /// </summary> |
| | 0 | 26 | | public AlterationPlanStatus Status { get; set; } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// The date and time at which the plan was created. |
| | | 30 | | /// </summary> |
| | 0 | 31 | | public DateTimeOffset CreatedAt { get; set; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// The date and time at which the plan was started. |
| | | 35 | | /// </summary> |
| | 0 | 36 | | public DateTimeOffset? StartedAt { get; set; } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// The date and time at which the plan was completed. |
| | | 40 | | /// </summary> |
| | 0 | 41 | | public DateTimeOffset? CompletedAt { get; set; } |
| | | 42 | | } |