< Summary

Information
Class: Elsa.Api.Client.Resources.Alterations.Models.AlterationWorkflowInstanceFilter
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/Alterations/Models/AlterationWorkflowInstanceFilter.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 13
Coverable lines: 13
Total lines: 76
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_EmptyFilterSelectsAll()100%210%
get_WorkflowInstanceIds()100%210%
get_CorrelationIds()100%210%
get_Names()100%210%
get_SearchTerm()100%210%
get_TimestampFilters()100%210%
get_DefinitionIds()100%210%
get_DefinitionVersionIds()100%210%
get_HasIncidents()100%210%
get_IsSystem()100%210%
get_Statuses()100%210%
get_SubStatuses()100%210%
get_ActivityFilters()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/Alterations/Models/AlterationWorkflowInstanceFilter.cs

#LineLine coverage
 1using Elsa.Api.Client.Resources.WorkflowInstances.Enums;
 2using Elsa.Api.Client.Shared.Models;
 3
 4namespace Elsa.Api.Client.Resources.Alterations.Models;
 5
 6/// <summary>
 7/// Represents a filter for workflow instances.
 8/// </summary>
 9public class AlterationWorkflowInstanceFilter
 10{
 11    /// <summary>
 12    /// If the filter is empty, all records are matched.
 13    /// </summary>
 014    public bool EmptyFilterSelectsAll { get; set; }
 15
 16    /// <summary>
 17    /// The IDs of the workflow instances that this plan applies to.
 18    /// </summary>
 019    public IEnumerable<string>? WorkflowInstanceIds { get; set; }
 20
 21    /// <summary>
 22    /// The correlation IDs of the workflow instances that this plan applies to.
 23    /// </summary>
 024    public IEnumerable<string>? CorrelationIds { get; set; }
 25
 26    /// <summary>
 27    /// A collection of names associated with the workflow instances being filtered.
 28    /// </summary>
 029    public ICollection<string>? Names { get; set; }
 30
 31    /// <summary>
 32    /// A search term used to filter workflow instances based on matching criteria.
 33    /// </summary>
 034    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>
 039    public IEnumerable<TimestampFilter>? TimestampFilters { get; set; }
 40
 41    /// <summary>
 42    /// The IDs of the workflow definitions that this plan applies to.
 43    /// </summary>
 044    public ICollection<string>? DefinitionIds { get; set; }
 45
 46    /// <summary>
 47    /// The IDs of the workflow definitions that this plan applies to.
 48    /// </summary>
 049    public IEnumerable<string>? DefinitionVersionIds { get; set; }
 50
 51    /// <summary>
 52    /// Whether the workflow instances to match have incidents.
 53    /// </summary>
 054    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>
 059    public bool? IsSystem { get; set; } = false;
 60
 61    /// <summary>
 62    /// Represents the workflow statuses included in the filter.
 63    /// </summary>
 064    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>
 069    public ICollection<WorkflowSubStatus>? SubStatuses { get; set; }
 70
 71    /// <summary>
 72    /// Represents a collection of filters for activities.
 73    /// </summary>
 074    public IEnumerable<ActivityFilter>? ActivityFilters { get; set; }
 75
 76}