< Summary

Information
Class: Elsa.Alterations.Core.Models.AlterationWorkflowInstanceFilter
Assembly: Elsa.Alterations.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Alterations.Core/Models/AlterationWorkflowInstanceFilter.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 13
Coverable lines: 13
Total lines: 78
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/modules/Elsa.Alterations.Core/Models/AlterationWorkflowInstanceFilter.cs

#LineLine coverage
 1using Elsa.Workflows;
 2using Elsa.Workflows.Management.Models;
 3using JetBrains.Annotations;
 4
 5namespace Elsa.Alterations.Core.Models;
 6
 7/// <summary>
 8/// Represents a filter for workflow instances.
 9/// </summary>
 10[UsedImplicitly]
 11public class AlterationWorkflowInstanceFilter
 12{
 13    /// <summary>
 14    /// If the filter is empty, all records are matched.
 15    /// </summary>
 016    public bool EmptyFilterSelectsAll { get; set; }
 17
 18    /// <summary>
 19    /// The IDs of the workflow instances that this plan applies to.
 20    /// </summary>
 021    public IEnumerable<string>? WorkflowInstanceIds { get; set; }
 22
 23    /// <summary>
 24    /// The correlation IDs of the workflow instances that this plan applies to.
 25    /// </summary>
 026    public IEnumerable<string>? CorrelationIds { get; set; }
 27
 28    /// <summary>
 29    /// A collection of names associated with the workflow instances being filtered.
 30    /// </summary>
 031    public ICollection<string>? Names { get; set; }
 32
 33    /// <summary>
 34    /// A search term used to filter workflow instances based on matching criteria.
 35    /// </summary>
 036    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>
 041    public IEnumerable<TimestampFilter>? TimestampFilters { get; set; }
 42
 43    /// <summary>
 44    /// The IDs of the workflow definitions that this plan applies to.
 45    /// </summary>
 046    public ICollection<string>? DefinitionIds { get; set; }
 47
 48    /// <summary>
 49    /// The IDs of the workflow definitions that this plan applies to.
 50    /// </summary>
 051    public IEnumerable<string>? DefinitionVersionIds { get; set; }
 52
 53    /// <summary>
 54    /// Whether the workflow instances to match have incidents.
 55    /// </summary>
 056    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>
 061    public bool? IsSystem { get; set; } = false;
 62
 63    /// <summary>
 64    /// Represents the workflow statuses included in the filter.
 65    /// </summary>
 066    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>
 071    public ICollection<WorkflowSubStatus>? SubStatuses { get; set; }
 72
 73    /// <summary>
 74    /// Represents a collection of filters for activities.
 75    /// </summary>
 076    public IEnumerable<ActivityFilter>? ActivityFilters { get; set; }
 77
 78}