< Summary

Information
Class: Elsa.Api.Client.Resources.WorkflowInstances.Models.ActivityExecutionContextState
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowInstances/Models/ActivityExecutionContextState.cs
Line coverage
71%
Covered lines: 5
Uncovered lines: 2
Coverable lines: 7
Total lines: 44
Line coverage: 71.4%
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_Id()100%11100%
get_ParentContextId()100%210%
get_ScheduledActivityNodeId()100%11100%
get_OwnerActivityNodeId()100%210%
get_Properties()100%11100%
get_ActivityState()100%11100%
get_DynamicVariables()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowInstances/Models/ActivityExecutionContextState.cs

#LineLine coverage
 1using Elsa.Api.Client.Resources.WorkflowDefinitions.Models;
 2
 3namespace Elsa.Api.Client.Resources.WorkflowInstances.Models;
 4
 5/// <summary>
 6/// A serializable shape of an <c>ActivityExecutionContext</c>.
 7/// </summary>
 8public class ActivityExecutionContextState
 9{
 10    /// <summary>
 11    /// The ID of the activity instance.
 12    /// </summary>
 313    public string Id { get; set; } = default!;
 14
 15    /// <summary>
 16    /// The ID of the parent of the activity instance.
 17    /// </summary>
 018    public string? ParentContextId { get; set; }
 19
 20    /// <summary>
 21    /// The node ID of the scheduled activity.
 22    /// </summary>
 323    public string ScheduledActivityNodeId { get; set; } = default!;
 24
 25    /// <summary>
 26    /// The node ID of the activity that owns the scheduled activity.
 27    /// </summary>
 028    public string? OwnerActivityNodeId { get; set; }
 29
 30    /// <summary>
 31    /// A bag of properties.
 32    /// </summary>
 633    public IDictionary<string, object> Properties { get; set; } = new Dictionary<string, object>();
 34
 35    /// <summary>
 36    /// The evaluated values of the activity's properties.
 37    /// </summary>
 338    public IDictionary<string, object>? ActivityState { get; set; }
 39
 40    /// <summary>
 41    /// A list of dynamically created variables.
 42    /// </summary>
 643    public ICollection<Variable> DynamicVariables { get; set; } = new List<Variable>();
 44}