< Summary

Information
Class: Elsa.Workflows.Runtime.Entities.WorkflowInboxMessage
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Entities/WorkflowInboxMessage.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 9
Coverable lines: 9
Total lines: 54
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_ActivityTypeName()100%210%
get_BookmarkPayload()100%210%
get_Hash()100%210%
get_WorkflowInstanceId()100%210%
get_CorrelationId()100%210%
get_ActivityInstanceId()100%210%
get_Input()100%210%
get_CreatedAt()100%210%
get_ExpiresAt()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Entities/WorkflowInboxMessage.cs

#LineLine coverage
 1using Elsa.Common.Entities;
 2
 3namespace Elsa.Workflows.Runtime.Entities;
 4
 5/// <summary>
 6/// A message that can be delivered to a workflow instance.
 7/// </summary>
 8public class WorkflowInboxMessage : Entity
 9{
 10    /// <summary>
 11    /// The type name of the activity to deliver the message to.
 12    /// </summary>
 013    public string ActivityTypeName { get; set; } = default!;
 14
 15    /// <summary>
 16    /// An optional bookmark payload that can be used to filter the workflow instances to deliver the message to.
 17    /// </summary>
 018    public object BookmarkPayload { get; set; } = default!;
 19
 20    /// <summary>
 21    /// The hash of the bookmark.
 22    /// </summary>
 023    public string Hash { get; set; } = default!;
 24
 25    /// <summary>
 26    /// An optional workflow instance ID to select the workflow instance to deliver the message to.
 27    /// </summary>
 028    public string? WorkflowInstanceId { get; set; }
 29
 30    /// <summary>
 31    /// An optional correlation ID to select the workflow instance to deliver the message to.
 32    /// </summary>
 033    public string? CorrelationId { get; set; }
 34
 35    /// <summary>
 36    /// An optional activity instance ID to select the workflow instance to deliver the message to.
 37    /// </summary>
 038    public string? ActivityInstanceId { get; set; }
 39
 40    /// <summary>
 41    /// An optional set of inputs to deliver to the workflow instance.
 42    /// </summary>
 043    public IDictionary<string, object>? Input { get; set; }
 44
 45    /// <summary>
 46    /// The date and time the message was created.
 47    /// </summary>
 048    public DateTimeOffset CreatedAt { get; set; }
 49
 50    /// <summary>
 51    /// The date and time the message expires.
 52    /// </summary>
 053    public DateTimeOffset ExpiresAt { get; set; }
 54}