< Summary

Information
Class: Elsa.Workflows.Runtime.ActivityExecutionStats
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Models/ActivityExecutionStats.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 9
Coverable lines: 9
Total lines: 52
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_ActivityId()100%210%
get_ActivityNodeId()100%210%
get_StartedCount()100%210%
get_CompletedCount()100%210%
get_UncompletedCount()100%210%
get_IsBlocked()100%210%
get_IsFaulted()100%210%
get_AggregateFaultCount()100%210%
get_Metadata()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Models/ActivityExecutionStats.cs

#LineLine coverage
 1namespace Elsa.Workflows.Runtime;
 2
 3/// <summary>
 4/// Execution stats about a given activity.
 5/// </summary>
 6public class ActivityExecutionStats
 7{
 8    /// <summary>
 9    /// Gets or sets the ID of the activity.
 10    /// </summary>
 011    public string ActivityId { get; set; } = null!;
 12
 13    /// <summary>
 14    /// Gets or sets the node ID of the activity.
 15    /// </summary>
 016    public string ActivityNodeId { get; set; } = null!;
 17
 18    /// <summary>
 19    /// Gets or sets the number of uncompleted executions.
 20    /// </summary>
 021    public long StartedCount { get; set; }
 22
 23    /// <summary>
 24    /// Gets or sets the number of completed executions.
 25    /// </summary>
 026    public long CompletedCount { get; set; }
 27
 28    /// <summary>
 29    /// Gets or sets the number of uncompleted executions.
 30    /// </summary>
 031    public long UncompletedCount { get; set; }
 32
 33    /// <summary>
 34    /// Gets or sets a value whether this activity is waiting for bookmarks to be resumed.
 35    /// </summary>
 036    public bool IsBlocked { get; set; }
 37
 38    /// <summary>
 39    /// Gets or sets a value whether this activity is faulted.
 40    /// </summary>
 041    public bool IsFaulted { get; set; }
 42
 43    /// <summary>
 44    /// Gets or sets the total count of faults aggregated from the activity execution and its descendants.
 45    /// </summary>
 046    public int AggregateFaultCount { get; set; }
 47
 48    /// <summary>
 49    /// Gets or sets metadata related to the activity execution.
 50    /// </summary>
 051    public IDictionary<string, object>? Metadata { get; set; }
 52}