< Summary

Information
Class: Elsa.Workflows.Runtime.Messages.CreateWorkflowInstanceRequest
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Messages/CreateWorkflowInstanceRequest.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 41
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_Properties()100%11100%
get_ParentId()100%11100%

File(s)

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

#LineLine coverage
 1using Elsa.Workflows.Models;
 2using JetBrains.Annotations;
 3
 4namespace Elsa.Workflows.Runtime.Messages;
 5
 6/// <summary>
 7/// A request to create a new workflow instance.
 8/// </summary>
 9[UsedImplicitly]
 10public class CreateWorkflowInstanceRequest
 11{
 12    /// <summary>
 13    /// The ID of the workflow definition version to create an instance of.
 14    /// </summary>
 24015    public WorkflowDefinitionHandle WorkflowDefinitionHandle { get; set; } = null!;
 16
 17    /// <summary>
 18    /// The correlation ID of the workflow, if any.
 19    /// </summary>
 21820    public string? CorrelationId { get; set; }
 21
 22    /// <summary>
 23    /// The name of the workflow instance to be created.
 24    /// </summary>
 21725    public string? Name { get; set; }
 26
 27    /// <summary>
 28    /// The input to the workflow instance, if any.
 29    /// </summary>
 21630    public IDictionary<string, object>? Input { get; set; }
 31
 32    /// <summary>
 33    /// Any properties to assign to the workflow instance.
 34    /// </summary>
 21635    public IDictionary<string, object>? Properties { get; set; }
 36
 37    /// <summary>
 38    /// The ID of the parent workflow instance, if any.
 39    /// </summary>
 21640    public string? ParentId { get; set; }
 41}