< 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
100%
Covered lines: 13
Uncovered lines: 0
Coverable lines: 13
Total lines: 78
Line coverage: 100%
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%11100%
get_WorkflowInstanceIds()100%11100%
get_CorrelationIds()100%11100%
get_Names()100%11100%
get_SearchTerm()100%11100%
get_TimestampFilters()100%11100%
get_DefinitionIds()100%11100%
get_DefinitionVersionIds()100%11100%
get_HasIncidents()100%11100%
get_IsSystem()100%11100%
get_Statuses()100%11100%
get_SubStatuses()100%11100%
get_ActivityFilters()100%11100%

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>
 6516    public bool EmptyFilterSelectsAll { get; set; }
 17
 18    /// <summary>
 19    /// The IDs of the workflow instances that this plan applies to.
 20    /// </summary>
 6921    public IEnumerable<string>? WorkflowInstanceIds { get; set; }
 22
 23    /// <summary>
 24    /// The correlation IDs of the workflow instances that this plan applies to.
 25    /// </summary>
 6926    public IEnumerable<string>? CorrelationIds { get; set; }
 27
 28    /// <summary>
 29    /// A collection of names associated with the workflow instances being filtered.
 30    /// </summary>
 6531    public ICollection<string>? Names { get; set; }
 32
 33    /// <summary>
 34    /// A search term used to filter workflow instances based on matching criteria.
 35    /// </summary>
 9836    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>
 6541    public IEnumerable<TimestampFilter>? TimestampFilters { get; set; }
 42
 43    /// <summary>
 44    /// The IDs of the workflow definitions that this plan applies to.
 45    /// </summary>
 6546    public ICollection<string>? DefinitionIds { get; set; }
 47
 48    /// <summary>
 49    /// The IDs of the workflow definitions that this plan applies to.
 50    /// </summary>
 6551    public IEnumerable<string>? DefinitionVersionIds { get; set; }
 52
 53    /// <summary>
 54    /// Whether the workflow instances to match have incidents.
 55    /// </summary>
 6956    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>
 23161    public bool? IsSystem { get; set; } = false;
 62
 63    /// <summary>
 64    /// Represents the workflow statuses included in the filter.
 65    /// </summary>
 6566    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>
 6571    public ICollection<WorkflowSubStatus>? SubStatuses { get; set; }
 72
 73    /// <summary>
 74    /// Represents a collection of filters for activities.
 75    /// </summary>
 6576    public IEnumerable<ActivityFilter>? ActivityFilters { get; set; }
 77
 78}