< Summary

Information
Class: Elsa.Workflows.Runtime.Parameters.StartWorkflowHostParams
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Parameters/StartWorkflowHostParams.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 9
Coverable lines: 9
Total lines: 50
Line coverage: 0%
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_InstanceId()100%210%
get_IsExistingInstance()100%210%
get_CorrelationId()100%210%
get_Input()100%210%
get_Properties()100%210%
get_TriggerActivityId()100%210%
get_CancellationToken()100%210%
get_StatusUpdatedCallback()100%210%
get_ParentWorkflowInstanceId()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Parameters/StartWorkflowHostParams.cs

#LineLine coverage
 1namespace Elsa.Workflows.Runtime.Parameters;
 2
 3/// <summary>
 4/// Represents options for starting a workflow host.
 5/// </summary>
 6public class StartWorkflowHostParams
 7{
 8    /// <summary>
 9    /// An optional workflow instance ID. If not specified, a new ID will be generated.
 10    /// </summary>
 011    public string? InstanceId { get; set; }
 12
 13    /// <summary>
 14    /// Indicates whether the workflow instance to start is a new instance or an existing one.
 15    /// </summary>
 016    public bool IsExistingInstance { get; set; }
 17
 18    /// <summary>
 19    /// An optional correlation ID.
 20    /// </summary>
 021    public string? CorrelationId { get; set; }
 22
 23    /// <summary>
 24    /// Optional input to pass to the workflow instance.
 25    /// </summary>
 026    public IDictionary<string, object>? Input { get; set; }
 27
 28    /// <summary>
 29    /// Any properties to attach to the workflow instance.
 30    /// </summary>
 031    public IDictionary<string, object>? Properties { get; set; }
 32
 33    /// <summary>
 34    /// The ID of the activity that triggered the workflow instance.
 35    /// </summary>
 036    public string? TriggerActivityId { get; set; }
 37
 38    /// <summary>Cancellation tokens that can be used to cancel the workflow instance without cancelling system-level op
 039    public CancellationToken CancellationToken { get; set; }
 40
 41    /// <summary>
 42    /// Callback method that will be called when the status of the workflow has been updated
 43    /// </summary>
 044    public Action<WorkflowExecutionContext>? StatusUpdatedCallback { get; set; }
 45
 46    /// <summary>
 47    /// The ID of the parent workflow instance.
 48    /// </summary>
 049    public string? ParentWorkflowInstanceId { get; set; }
 50}