< Summary

Information
Class: Elsa.Workflows.Runtime.Messages.CreateAndRunWorkflowInstanceRequest
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Messages/CreateAndRunWorkflowInstanceRequest.cs
Line coverage
100%
Covered lines: 10
Uncovered lines: 0
Coverable lines: 10
Total lines: 61
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_WorkflowDefinitionHandle()100%11100%
get_CorrelationId()100%11100%
get_Name()100%11100%
get_Input()100%11100%
get_Variables()100%11100%
get_Properties()100%11100%
get_ParentId()100%11100%
get_TriggerActivityId()100%11100%
get_ActivityHandle()100%11100%
get_IncludeWorkflowOutput()100%11100%

File(s)

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

#LineLine coverage
 1using Elsa.Workflows.Models;
 2using JetBrains.Annotations;
 3
 4namespace Elsa.Workflows.Runtime.Messages;
 5
 6/// <summary>
 7/// A request to create and run a new workflow instance.
 8/// </summary>
 9[UsedImplicitly]
 10public class CreateAndRunWorkflowInstanceRequest
 11{
 12    /// <summary>
 13    /// The ID of the workflow definition version to create an instance of.
 14    /// </summary>
 19215    public WorkflowDefinitionHandle WorkflowDefinitionHandle { get; set; } = null!;
 16
 17    /// <summary>
 18    /// The correlation ID of the workflow, if any.
 19    /// </summary>
 17620    public string? CorrelationId { get; set; }
 21
 22    /// <summary>
 23    /// The name of the workflow instance to be created.
 24    /// </summary>
 11225    public string? Name { get; set; }
 26
 27    /// <summary>
 28    /// The input to the workflow instance, if any.
 29    /// </summary>
 27230    public IDictionary<string, object>? Input { get; set; }
 31
 32    /// <summary>
 33    /// A collection of custom variables used within the workflow instance.
 34    /// </summary>
 11235    public IDictionary<string, object>? Variables { get; set; }
 36
 37    /// <summary>
 38    /// Any properties to assign to the workflow instance.
 39    /// </summary>
 23140    public IDictionary<string, object>? Properties { get; set; }
 41
 42    /// <summary>
 43    /// The ID of the parent workflow instance, if any.
 44    /// </summary>
 13545    public string? ParentId { get; set; }
 46
 47    /// <summary>
 48    /// The ID of the activity that triggered the workflow instance, if any.
 49    /// </summary>
 13550    public string? TriggerActivityId { get; set; }
 51
 52    /// <summary>
 53    /// The handle of the activity to schedule, if any.
 54    /// </summary>
 11255    public ActivityHandle? ActivityHandle { get; set; }
 56
 57    /// <summary>
 58    /// When set to <c>true</c>, include workflow output in the response.
 59    /// </summary>
 9660    public bool IncludeWorkflowOutput { get; set; }
 61}