< Summary

Information
Class: Elsa.Workflows.Runtime.StimulusMetadata
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Models/StimulusMetadata.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 45
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_CorrelationId()100%11100%
get_ActivityInstanceId()100%11100%
get_BookmarkId()100%11100%
get_ParentWorkflowInstanceId()100%11100%
get_Input()100%11100%
get_Properties()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Models/StimulusMetadata.cs

#LineLine coverage
 1using JetBrains.Annotations;
 2
 3namespace Elsa.Workflows.Runtime;
 4
 5/// <summary>
 6/// Represents information about how to route a stimulus to an activity and workflow instance.
 7/// </summary>
 8[UsedImplicitly]
 9public class StimulusMetadata
 10{
 11    /// <summary>
 12    /// The ID of the workflow instance to route the stimulus to.
 13    /// </summary>
 1814    public string? WorkflowInstanceId { get; set; }
 15
 16    /// <summary>
 17    /// The correlation ID of the workflow instance to route the stimulus to.
 18    /// </summary>
 1719    public string? CorrelationId { get; set; }
 20
 21    /// <summary>
 22    /// The handle of the activity to route the stimulus to.
 23    /// </summary>
 1924    public string? ActivityInstanceId { get; set; }
 25
 26    /// <summary>
 27    /// The ID of the bookmark created by the activity to route the stimulus to.
 28    /// </summary>
 1229    public string? BookmarkId { get; set; }
 30
 31    /// <summary>
 32    /// The ID of the workflow instance that sent the stimulus.
 33    /// </summary>
 434    public string? ParentWorkflowInstanceId { get; set; }
 35
 36    /// <summary>
 37    /// Any input that was provided by the sender.
 38    /// </summary>
 1439    public IDictionary<string, object>? Input { get; set; }
 40
 41    /// <summary>
 42    /// Any properties that were provided by the sender.
 43    /// </summary>
 944    public IDictionary<string, object>? Properties { get; set; }
 45}