< Summary

Information
Class: Elsa.Workflows.Runtime.Messages.RunWorkflowInstanceResponse
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Messages/RunWorkflowInstanceResponse.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 42
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_WorkflowInstanceId()100%11100%
get_Status()100%11100%
get_SubStatus()100%11100%
get_Bookmarks()100%11100%
get_Incidents()100%11100%
get_Output()100%11100%
get_CannotStart()100%11100%

File(s)

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

#LineLine coverage
 1using Elsa.Workflows.Models;
 2
 3namespace Elsa.Workflows.Runtime.Messages;
 4
 5/// <summary>
 6/// Represents a response from running a workflow instance.
 7/// </summary>
 8public record RunWorkflowInstanceResponse
 9{
 10    /// <summary>
 11    /// The ID of the workflow instance, or <see langword="null"/> when <see cref="CannotStart"/> is <see langword="true
 12    /// </summary>
 35713    public string WorkflowInstanceId { get; set; } = null!;
 14
 15    /// <summary>
 16    /// The status of the workflow instance.
 17    /// </summary>
 30518    public WorkflowStatus Status { get; set; }
 19
 20    /// <summary>
 21    /// The sub-status of the workflow instance.
 22    /// </summary>
 25323    public WorkflowSubStatus SubStatus { get; set; }
 24
 56625    public ICollection<Bookmark> Bookmarks { get; set; } = new List<Bookmark>();
 26
 27    /// <summary>
 28    /// Any incidents that occurred during the execution of the workflow instance.
 29    /// </summary>
 57230    public ICollection<ActivityIncident> Incidents { get; set; } = new List<ActivityIncident>();
 31
 32    /// <summary>
 33    /// The output produced by the workflow instance.
 34    /// </summary>
 21235    public IDictionary<string, object>? Output { get; set; }
 36
 37    /// <summary>
 38    /// When <c>true</c>, the workflow's activation strategy refused to create a new instance.
 39    /// No instance was persisted. Other fields are unset.
 40    /// </summary>
 9141    public bool CannotStart { get; set; }
 42}