< Summary

Information
Class: Elsa.Workflows.Runtime.Messages.RunWorkflowInstanceRequest
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Messages/RunWorkflowInstanceRequest.cs
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 71
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_TriggerActivityId()100%11100%
get_BookmarkId()100%11100%
get_ActivityHandle()100%11100%
get_Properties()100%11100%
get_Input()100%11100%
get_Variables()100%11100%
get_IncludeWorkflowOutput()100%11100%
get_SchedulingActivityExecutionId()100%11100%
get_SchedulingWorkflowInstanceId()100%11100%
get_SchedulingCallStackDepth()100%11100%
get_Empty()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Messages/RunWorkflowInstanceRequest.cs

#LineLine coverage
 1using Elsa.Workflows.Models;
 2using JetBrains.Annotations;
 3
 4namespace Elsa.Workflows.Runtime.Messages;
 5
 6/// <summary>
 7/// A request to run a workflow instance.
 8/// </summary>
 9[UsedImplicitly]
 10public class RunWorkflowInstanceRequest
 11{
 12    /// <summary>
 13    /// The ID of the activity that triggered the workflow instance, if any.
 14    /// </summary>
 27215    public string? TriggerActivityId { get; set; }
 16
 17    /// <summary>
 18    /// The ID of the bookmark that triggered the workflow instance, if any.
 19    /// </summary>
 22020    public string? BookmarkId { get; set; }
 21
 22    /// <summary>
 23    /// The handle of the activity to schedule, if any.
 24    /// </summary>
 28325    public ActivityHandle? ActivityHandle { get; set; }
 26
 27    /// <summary>
 28    /// Any additional properties to associate with the workflow instance.
 29    /// </summary>
 31130    public IDictionary<string, object>? Properties { get; set; }
 31
 32    /// <summary>
 33    /// The input to the workflow instance, if any.
 34    /// </summary>
 31135    public IDictionary<string, object>? Input { get; set; }
 36
 37    /// <summary>
 38    /// A collection of variables to be used during the execution of a workflow instance.
 39    /// </summary>
 27240    public IDictionary<string, object>? Variables { get; set; }
 41
 42    /// <summary>
 43    /// When set to <c>true</c>, include workflow output in the response.
 44    /// </summary>
 27245    public bool IncludeWorkflowOutput { get; set; }
 46
 47    /// <summary>
 48    /// The ID of the activity execution context that scheduled this workflow execution (for cross-workflow call stack t
 49    /// This is set when a parent workflow invokes this workflow via ExecuteWorkflow or DispatchWorkflow.
 50    /// </summary>
 21951    public string? SchedulingActivityExecutionId { get; set; }
 52
 53    /// <summary>
 54    /// The workflow instance ID of the parent workflow that scheduled this workflow execution.
 55    /// This is set when crossing workflow boundaries.
 56    /// </summary>
 21957    public string? SchedulingWorkflowInstanceId { get; set; }
 58
 59    /// <summary>
 60    /// The call stack depth of the scheduling activity execution context.
 61    /// This is used to calculate the call stack depth when the scheduling context is not present
 62    /// in ActivityExecutionContexts (e.g., for cross-workflow invocations).
 63    /// Should be set to the depth of the scheduling activity (not depth + 1, as the increment is applied automatically)
 64    /// </summary>
 21965    public int? SchedulingCallStackDepth { get; set; }
 66
 67    /// <summary>
 68    /// Represents an empty <see cref="RunWorkflowInstanceRequest"/> object used as a default value.
 69    /// </summary>
 3170    public static RunWorkflowInstanceRequest Empty => new();
 71}