< Summary

Information
Class: Elsa.Workflows.Runtime.Models.WorkflowDispatchOutboxItem
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Models/WorkflowDispatchOutboxItem.cs
Line coverage
70%
Covered lines: 7
Uncovered lines: 3
Coverable lines: 10
Total lines: 59
Line coverage: 70%
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_Id()100%11100%
get_OwnerWorkflowInstanceId()100%11100%
get_TenantId()100%11100%
get_Kind()100%11100%
get_CreatedAt()100%11100%
get_DeliveryAttempts()100%11100%
get_WorkflowDefinitionCommand()100%11100%
get_WorkflowInstanceCommand()100%210%
get_TriggerWorkflowsCommand()100%210%
get_ResumeWorkflowsCommand()100%210%

File(s)

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

#LineLine coverage
 1using Elsa.Workflows.Runtime.Commands;
 2
 3namespace Elsa.Workflows.Runtime.Models;
 4
 5/// <summary>
 6/// A durable workflow dispatch command waiting for delivery.
 7/// </summary>
 8public class WorkflowDispatchOutboxItem
 9{
 10    /// <summary>
 11    /// The outbox item ID.
 12    /// </summary>
 35313    public string Id { get; set; } = null!;
 14
 15    /// <summary>
 16    /// The workflow instance whose committed state must reference this item before it can be delivered.
 17    /// </summary>
 9018    public string OwnerWorkflowInstanceId { get; set; } = null!;
 19
 20    /// <summary>
 21    /// The tenant ID captured when the item was enqueued.
 22    /// </summary>
 5423    public string? TenantId { get; set; }
 24
 25    /// <summary>
 26    /// The kind of dispatch command stored by this item.
 27    /// </summary>
 5628    public WorkflowDispatchOutboxItemKind Kind { get; set; }
 29
 30    /// <summary>
 31    /// When the item was created.
 32    /// </summary>
 11133    public DateTimeOffset CreatedAt { get; set; }
 34
 35    /// <summary>
 36    /// The number of failed delivery attempts.
 37    /// </summary>
 2238    public int DeliveryAttempts { get; set; }
 39
 40    /// <summary>
 41    /// A workflow definition dispatch command.
 42    /// </summary>
 7543    public DispatchWorkflowDefinitionCommand? WorkflowDefinitionCommand { get; set; }
 44
 45    /// <summary>
 46    /// A workflow instance dispatch command.
 47    /// </summary>
 048    public DispatchWorkflowInstanceCommand? WorkflowInstanceCommand { get; set; }
 49
 50    /// <summary>
 51    /// A trigger workflow dispatch command.
 52    /// </summary>
 053    public DispatchTriggerWorkflowsCommand? TriggerWorkflowsCommand { get; set; }
 54
 55    /// <summary>
 56    /// A resume workflows dispatch command.
 57    /// </summary>
 058    public DispatchResumeWorkflowsCommand? ResumeWorkflowsCommand { get; set; }
 59}