< 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: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 51
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_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>
 25815    public string? TriggerActivityId { get; set; }
 16
 17    /// <summary>
 18    /// The ID of the bookmark that triggered the workflow instance, if any.
 19    /// </summary>
 20420    public string? BookmarkId { get; set; }
 21
 22    /// <summary>
 23    /// The handle of the activity to schedule, if any.
 24    /// </summary>
 26925    public ActivityHandle? ActivityHandle { get; set; }
 26
 27    /// <summary>
 28    /// Any additional properties to associate with the workflow instance.
 29    /// </summary>
 28930    public IDictionary<string, object>? Properties { get; set; }
 31
 32    /// <summary>
 33    /// The input to the workflow instance, if any.
 34    /// </summary>
 29435    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>
 25840    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>
 25845    public bool IncludeWorkflowOutput { get; set; }
 46
 47    /// <summary>
 48    /// Represents an empty <see cref="RunWorkflowInstanceRequest"/> object used as a default value.
 49    /// </summary>
 2450    public static RunWorkflowInstanceRequest Empty => new();
 51}