< Summary

Information
Class: Elsa.Workflows.Options.RunWorkflowOptions
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Options/RunWorkflowOptions.cs
Line coverage
100%
Covered lines: 12
Uncovered lines: 0
Coverable lines: 12
Total lines: 39
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_WorkflowInstanceId()100%11100%
get_CorrelationId()100%11100%
get_BookmarkId()100%11100%
get_ActivityHandle()100%11100%
get_Input()100%11100%
get_Variables()100%11100%
get_Properties()100%11100%
get_TriggerActivityId()100%11100%
get_ParentWorkflowInstanceId()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/Options/RunWorkflowOptions.cs

#LineLine coverage
 1using Elsa.Workflows.Models;
 2
 3namespace Elsa.Workflows.Options;
 4
 5/// <summary>
 6/// Provides options for running a workflow.
 7/// </summary>
 8public class RunWorkflowOptions
 9{
 62010    public string? WorkflowInstanceId { get; set; }
 74111    public string? CorrelationId { get; set; }
 26612    public string? BookmarkId { get; set; }
 26613    public ActivityHandle? ActivityHandle { get; set; }
 89014    public IDictionary<string, object>? Input { get; set; }
 26415    public IDictionary<string, object>? Variables { get; set; }
 79916    public IDictionary<string, object>? Properties { get; set; }
 85217    public string? TriggerActivityId { get; set; }
 47518    public string? ParentWorkflowInstanceId { get; set; }
 19
 20    /// <summary>
 21    /// The ID of the activity execution context that scheduled this workflow execution (for cross-workflow call stack t
 22    /// This is set when a parent workflow invokes this workflow via ExecuteWorkflow or DispatchWorkflow.
 23    /// </summary>
 56324    public string? SchedulingActivityExecutionId { get; set; }
 25
 26    /// <summary>
 27    /// The workflow instance ID of the parent workflow that scheduled this workflow execution.
 28    /// This is set when crossing workflow boundaries.
 29    /// </summary>
 56330    public string? SchedulingWorkflowInstanceId { get; set; }
 31
 32    /// <summary>
 33    /// The call stack depth of the scheduling activity execution context.
 34    /// This is used to calculate the call stack depth when the scheduling context is not present
 35    /// in ActivityExecutionContexts (e.g., for cross-workflow invocations).
 36    /// Should be set to the depth of the scheduling activity (not depth + 1, as the increment is applied automatically)
 37    /// </summary>
 56338    public int? SchedulingCallStackDepth { get; set; }
 39}