< 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
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 39
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_ActivityNodeId()100%210%
get_OwnerContextId()100%210%
get_Tag()100%210%
get_Variables()100%210%
get_ExistingActivityExecutionContextId()100%210%
get_Input()100%210%

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>
 013    public string ActivityNodeId { get; set; } = default!;
 14
 15    /// <summary>
 16    /// The ID of the parent activity execution context, if any.
 17    /// </summary>
 018    public string? OwnerContextId { get; set; }
 19
 20    /// <summary>
 21    /// A tag that can be used to identify the work item.
 22    /// </summary>
 023    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>
 028    public ICollection<Variable>? Variables { get; set; }
 29
 30    /// <summary>
 31    /// The ID of an existing activity execution context to schedule, if any.
 32    /// </summary>
 033    public string? ExistingActivityExecutionContextId { get; set; }
 34
 35    /// <summary>
 36    /// Optional input to pass to the activity.
 37    /// </summary>
 038    public IDictionary<string, object> Input { get; set; } = new Dictionary<string, object>();
 39}