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