< Summary

Information
Class: Elsa.Workflows.Runtime.Entities.BookmarkQueueDeadLetterItem
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Entities/BookmarkQueueDeadLetterItem.cs
Line coverage
100%
Covered lines: 18
Uncovered lines: 0
Coverable lines: 18
Total lines: 100
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_OriginalQueueItemId()100%11100%
get_WorkflowInstanceId()100%11100%
get_CorrelationId()100%11100%
get_BookmarkId()100%11100%
get_StimulusHash()100%11100%
get_ActivityInstanceId()100%11100%
get_ActivityTypeName()100%11100%
get_Options()100%11100%
get_OriginalCreatedAt()100%11100%
get_DeadLetteredAt()100%11100%
get_Reason()100%11100%
get_DeliveryAttempts()100%11100%
get_LastAttemptedAt()100%11100%
get_LastErrorType()100%11100%
get_LastErrorMessage()100%11100%
get_CanReplay()100%11100%
get_ReplayedAt()100%11100%
get_ReplayedQueueItemId()100%11100%

File(s)

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

#LineLine coverage
 1using Elsa.Common.Entities;
 2using Elsa.Workflows.Runtime.Options;
 3
 4namespace Elsa.Workflows.Runtime.Entities;
 5
 6/// <summary>
 7/// Represents a bookmark queue item that was moved out of the active queue for operator inspection.
 8/// </summary>
 9public class BookmarkQueueDeadLetterItem : Entity
 10{
 11    /// <summary>
 12    /// The ID of the original bookmark queue item.
 13    /// </summary>
 28814    public string OriginalQueueItemId { get; set; } = null!;
 15
 16    /// <summary>
 17    /// The workflow instance ID owning the bookmark to resume.
 18    /// </summary>
 18319    public string? WorkflowInstanceId { get; set; }
 20
 21    /// <summary>
 22    /// The correlation ID associated with the workflow instance owning the bookmark to resume.
 23    /// </summary>
 17924    public string? CorrelationId { get; set; }
 25
 26    /// <summary>
 27    /// The bookmark ID to resume.
 28    /// </summary>
 18329    public string? BookmarkId { get; set; }
 30
 31    /// <summary>
 32    /// A bookmark payload hash of the bookmark to resume.
 33    /// </summary>
 18334    public string? StimulusHash { get; set; }
 35
 36    /// <summary>
 37    /// The ID of the activity instance associated with the bookmark.
 38    /// </summary>
 17939    public string? ActivityInstanceId { get; set; }
 40
 41    /// <summary>
 42    /// The type name of the activity associated with the bookmark.
 43    /// </summary>
 18344    public string? ActivityTypeName { get; set; }
 45
 46    /// <summary>
 47    /// Any options to apply when resuming the bookmark.
 48    /// </summary>
 17749    public ResumeBookmarkOptions? Options { get; set; }
 50
 51    /// <summary>
 52    /// The timestamp that the original queue item was created.
 53    /// </summary>
 19954    public DateTimeOffset OriginalCreatedAt { get; set; }
 55
 56    /// <summary>
 57    /// The timestamp that this item was moved to the dead-letter store.
 58    /// </summary>
 20959    public DateTimeOffset DeadLetteredAt { get; set; }
 60
 61    /// <summary>
 62    /// The reason this item was moved to the dead-letter store.
 63    /// </summary>
 20864    public string Reason { get; set; } = null!;
 65
 66    /// <summary>
 67    /// The number of failed delivery attempts observed before dead-lettering.
 68    /// </summary>
 17769    public int DeliveryAttempts { get; set; }
 70
 71    /// <summary>
 72    /// The timestamp of the last failed delivery attempt.
 73    /// </summary>
 17474    public DateTimeOffset? LastAttemptedAt { get; set; }
 75
 76    /// <summary>
 77    /// The type of the last exception observed while processing this item.
 78    /// </summary>
 17679    public string? LastErrorType { get; set; }
 80
 81    /// <summary>
 82    /// The message of the last exception observed while processing this item.
 83    /// </summary>
 17684    public string? LastErrorMessage { get; set; }
 85
 86    /// <summary>
 87    /// Whether this item can be replayed.
 88    /// </summary>
 34289    public bool CanReplay { get; set; } = true;
 90
 91    /// <summary>
 92    /// The timestamp that this item was replayed.
 93    /// </summary>
 17894    public DateTimeOffset? ReplayedAt { get; set; }
 95
 96    /// <summary>
 97    /// The ID of the queue item created when this dead-letter item was replayed.
 98    /// </summary>
 17699    public string? ReplayedQueueItemId { get; set; }
 100}