< Summary

Information
Class: Elsa.Workflows.Runtime.StartWorkflowRequest
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Requests/StartWorkflowRequest.cs
Line coverage
90%
Covered lines: 9
Uncovered lines: 1
Coverable lines: 10
Total lines: 60
Line coverage: 90%
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%210%
get_Workflow()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%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Requests/StartWorkflowRequest.cs

#LineLine coverage
 1using System.Collections;
 2using Elsa.Workflows.Activities;
 3using Elsa.Workflows.Models;
 4
 5namespace Elsa.Workflows.Runtime;
 6
 7public class StartWorkflowRequest
 8{
 9    /// <summary>
 10    /// The ID of the workflow definition version to create an instance of.
 11    /// Will be used if <see cref="Workflow"/> is not set.
 12    /// </summary>
 013    public WorkflowDefinitionHandle? WorkflowDefinitionHandle { get; set; }
 14
 15    /// <summary>
 16    /// The workflow to create an instance of.
 17    /// Will be used if <see cref="WorkflowDefinitionHandle"/> is not set.
 18    /// </summary>
 4819    public Workflow? Workflow { get; set; }
 20
 21    /// <summary>
 22    /// The correlation ID of the workflow, if any.
 23    /// </summary>
 4824    public string? CorrelationId { get; set; }
 25
 26    /// <summary>
 27    /// The name to use when starting a new workflow instance.
 28    /// </summary>
 2729    public string? Name { get; set; }
 30
 31    /// <summary>
 32    /// The input to the workflow instance, if any.
 33    /// </summary>
 3234    public IDictionary<string, object>? Input { get; set; }
 35
 36    /// <summary>
 37    /// Any variables to set before starting the workflow.
 38    /// </summary>
 3239    public IDictionary<string, object>? Variables { get; set; }
 40
 41    /// <summary>
 42    /// Any properties to assign to the workflow instance.
 43    /// </summary>
 2144    public IDictionary<string, object>? Properties { get; set; }
 45
 46    /// <summary>
 47    /// The ID of the parent workflow instance, if any.
 48    /// </summary>
 2149    public string? ParentId { get; set; }
 50
 51    /// <summary>
 52    /// The ID of the activity that triggered the workflow instance, if any.
 53    /// </summary>
 3254    public string? TriggerActivityId { get; set; }
 55
 56    /// <summary>
 57    /// The handle of the activity to schedule, if any.
 58    /// </summary>
 2759    public ActivityHandle? ActivityHandle { get; set; }
 60}