< Summary

Information
Class: Elsa.Scheduling.ScheduleNewWorkflowInstanceRequest
Assembly: Elsa.Scheduling
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Scheduling/Requests/ScheduleNewWorkflowInstanceRequest.cs
Line coverage
42%
Covered lines: 3
Uncovered lines: 4
Coverable lines: 7
Total lines: 41
Line coverage: 42.8%
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%210%
get_Input()100%11100%
get_Variables()100%210%
get_Properties()100%210%
get_ParentId()100%210%
get_TriggerActivityId()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Scheduling/Requests/ScheduleNewWorkflowInstanceRequest.cs

#LineLine coverage
 1using Elsa.Workflows.Models;
 2
 3namespace Elsa.Scheduling;
 4
 5public class ScheduleNewWorkflowInstanceRequest
 6{
 7    /// <summary>
 8    /// The ID of the workflow definition version to create an instance of.
 9    /// </summary>
 310    public WorkflowDefinitionHandle WorkflowDefinitionHandle { get; set; } = null!;
 11
 12    /// <summary>
 13    /// The correlation ID of the workflow, if any.
 14    /// </summary>
 015    public string? CorrelationId { get; set; }
 16
 17    /// <summary>
 18    /// The input to the workflow instance, if any.
 19    /// </summary>
 320    public IDictionary<string, object>? Input { get; set; }
 21
 22    /// <summary>
 23    /// A collection of variables to pass to the workflow instance during scheduling.
 24    /// </summary>
 025    public IDictionary<string, object>? Variables { get; set; }
 26
 27    /// <summary>
 28    /// Any properties to assign to the workflow instance.
 29    /// </summary>
 030    public IDictionary<string, object>? Properties { get; set; }
 31
 32    /// <summary>
 33    /// The ID of the parent workflow instance, if any.
 34    /// </summary>
 035    public string? ParentId { get; set; }
 36
 37    /// <summary>
 38    /// The ID of the activity that triggered the workflow instance, if any.
 39    /// </summary>
 340    public string? TriggerActivityId { get; set; }
 41}