< Summary

Information
Class: Elsa.Workflows.State.ActivityWorkItemState
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/State/ActivityWorkItemState.cs
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 54
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_ActivityNodeId()100%11100%
get_OwnerContextId()100%11100%
get_Tag()100%11100%
get_Variables()100%11100%
get_ExistingActivityExecutionContextId()100%11100%
get_Input()100%11100%
get_SchedulingActivityExecutionId()100%11100%
get_SchedulingWorkflowInstanceId()100%11100%
get_SchedulingCallStackDepth()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/State/ActivityWorkItemState.cs

#LineLine coverage
 1using Elsa.Workflows.Memory;
 2
 3namespace Elsa.Workflows.State;
 4
 5/// <summary>
 6/// A serialized representation of an activity work item.
 7/// </summary>
 8public class ActivityWorkItemState
 9{
 10    /// <summary>
 11    /// The ID of the activity to be executed.
 12    /// </summary>
 413    public string ActivityNodeId { get; set; } = default!;
 14
 15    /// <summary>
 16    /// The ID of the parent activity execution context, if any.
 17    /// </summary>
 418    public string? OwnerContextId { get; set; }
 19
 20    /// <summary>
 21    /// A tag that can be used to identify the work item.
 22    /// </summary>
 423    public object? Tag { get; set; }
 24
 25    /// <summary>
 26    /// A set of variables to be created as part of the activity execution context, if any.
 27    /// </summary>
 428    public ICollection<Variable>? Variables { get; set; }
 29
 30    /// <summary>
 31    /// The ID of an existing activity execution context to schedule, if any.
 32    /// </summary>
 433    public string? ExistingActivityExecutionContextId { get; set; }
 34
 35    /// <summary>
 36    /// Optional input to pass to the activity.
 37    /// </summary>
 638    public IDictionary<string, object> Input { get; set; } = new Dictionary<string, object>();
 39
 40    /// <summary>
 41    /// The ID of the activity execution context that scheduled this work item.
 42    /// </summary>
 443    public string? SchedulingActivityExecutionId { get; set; }
 44
 45    /// <summary>
 46    /// The workflow instance ID of the workflow that scheduled this work item, if it crossed a workflow boundary.
 47    /// </summary>
 448    public string? SchedulingWorkflowInstanceId { get; set; }
 49
 50    /// <summary>
 51    /// The call stack depth of the activity execution context that scheduled this work item.
 52    /// </summary>
 453    public int? SchedulingCallStackDepth { get; set; }
 54}