| | | 1 | | using Elsa.Workflows; |
| | | 2 | | using Elsa.Workflows.Management.Models; |
| | | 3 | | using JetBrains.Annotations; |
| | | 4 | | |
| | | 5 | | namespace Elsa.Alterations.Core.Models; |
| | | 6 | | |
| | | 7 | | /// <summary> |
| | | 8 | | /// Represents a filter for workflow instances. |
| | | 9 | | /// </summary> |
| | | 10 | | [UsedImplicitly] |
| | | 11 | | public class AlterationWorkflowInstanceFilter |
| | | 12 | | { |
| | | 13 | | /// <summary> |
| | | 14 | | /// If the filter is empty, all records are matched. |
| | | 15 | | /// </summary> |
| | 0 | 16 | | public bool EmptyFilterSelectsAll { get; set; } |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// The IDs of the workflow instances that this plan applies to. |
| | | 20 | | /// </summary> |
| | 0 | 21 | | public IEnumerable<string>? WorkflowInstanceIds { get; set; } |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// The correlation IDs of the workflow instances that this plan applies to. |
| | | 25 | | /// </summary> |
| | 0 | 26 | | public IEnumerable<string>? CorrelationIds { get; set; } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// A collection of names associated with the workflow instances being filtered. |
| | | 30 | | /// </summary> |
| | 0 | 31 | | public ICollection<string>? Names { get; set; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// A search term used to filter workflow instances based on matching criteria. |
| | | 35 | | /// </summary> |
| | 0 | 36 | | public string? SearchTerm { get; set; } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// A collection of timestamp filters used for filtering data based on specified timestamp columns and operators. |
| | | 40 | | /// </summary> |
| | 0 | 41 | | public IEnumerable<TimestampFilter>? TimestampFilters { get; set; } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// The IDs of the workflow definitions that this plan applies to. |
| | | 45 | | /// </summary> |
| | 0 | 46 | | public ICollection<string>? DefinitionIds { get; set; } |
| | | 47 | | |
| | | 48 | | /// <summary> |
| | | 49 | | /// The IDs of the workflow definitions that this plan applies to. |
| | | 50 | | /// </summary> |
| | 0 | 51 | | public IEnumerable<string>? DefinitionVersionIds { get; set; } |
| | | 52 | | |
| | | 53 | | /// <summary> |
| | | 54 | | /// Whether the workflow instances to match have incidents. |
| | | 55 | | /// </summary> |
| | 0 | 56 | | public bool? HasIncidents { get; set; } |
| | | 57 | | |
| | | 58 | | /// <summary> |
| | | 59 | | /// Whether the workflow instances to match are system workflows. Defaults to <c>false</c>. |
| | | 60 | | /// </summary> |
| | 0 | 61 | | public bool? IsSystem { get; set; } = false; |
| | | 62 | | |
| | | 63 | | /// <summary> |
| | | 64 | | /// Represents the workflow statuses included in the filter. |
| | | 65 | | /// </summary> |
| | 0 | 66 | | public ICollection<WorkflowStatus>? Statuses { get; set; } |
| | | 67 | | |
| | | 68 | | /// <summary> |
| | | 69 | | /// A collection of sub-statuses used to filter workflow instances by their specific sub-state. |
| | | 70 | | /// </summary> |
| | 0 | 71 | | public ICollection<WorkflowSubStatus>? SubStatuses { get; set; } |
| | | 72 | | |
| | | 73 | | /// <summary> |
| | | 74 | | /// Represents a collection of filters for activities. |
| | | 75 | | /// </summary> |
| | 0 | 76 | | public IEnumerable<ActivityFilter>? ActivityFilters { get; set; } |
| | | 77 | | |
| | | 78 | | } |