< Summary

Information
Class: Elsa.Workflows.Management.Options.WorkflowInstanceOptions
Assembly: Elsa.Workflows.Management
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Management/Options/WorkflowInstanceOptions.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 40
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_CorrelationId()100%11100%
get_Name()100%11100%
get_Input()100%11100%
get_Properties()100%11100%
get_WorkflowInstanceId()100%11100%
get_ParentWorkflowInstanceId()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Management/Options/WorkflowInstanceOptions.cs

#LineLine coverage
 1using JetBrains.Annotations;
 2
 3namespace Elsa.Workflows.Management.Options;
 4
 5/// <summary>
 6/// Represents parameters for creating a workflow instance.
 7/// </summary>
 8[UsedImplicitly]
 9public class WorkflowInstanceOptions
 10{
 11    /// <summary>
 12    /// The correlation ID of the workflow, if any.
 13    /// </summary>
 14414    public string? CorrelationId { get; set; }
 15
 16    /// <summary>
 17    /// The name of the workflow instance.
 18    /// </summary>
 14419    public string? Name { get; set; }
 20
 21    /// <summary>
 22    /// The input to the workflow instance, if any.
 23    /// </summary>
 14424    public IDictionary<string, object>? Input { get; set; }
 25
 26    /// <summary>
 27    /// Any properties to assign to the workflow instance.
 28    /// </summary>
 14429    public IDictionary<string, object>? Properties { get; set; }
 30
 31    /// <summary>
 32    /// A pre-created workflow instance ID that the new workflow instance should use. If not provided, a new ID will be 
 33    /// </summary>
 21634    public string? WorkflowInstanceId { get; set; }
 35
 36    /// <summary>
 37    /// The ID of the parent workflow instance, if any.
 38    /// </summary>
 14439    public string? ParentWorkflowInstanceId { get; set; }
 40}