| | | 1 | | using Elsa.Common.Entities; |
| | | 2 | | using Elsa.Workflows.Runtime.Options; |
| | | 3 | | |
| | | 4 | | namespace 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> |
| | | 9 | | public class BookmarkQueueDeadLetterItem : Entity |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// The ID of the original bookmark queue item. |
| | | 13 | | /// </summary> |
| | 288 | 14 | | public string OriginalQueueItemId { get; set; } = null!; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// The workflow instance ID owning the bookmark to resume. |
| | | 18 | | /// </summary> |
| | 183 | 19 | | public string? WorkflowInstanceId { get; set; } |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// The correlation ID associated with the workflow instance owning the bookmark to resume. |
| | | 23 | | /// </summary> |
| | 179 | 24 | | public string? CorrelationId { get; set; } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// The bookmark ID to resume. |
| | | 28 | | /// </summary> |
| | 183 | 29 | | public string? BookmarkId { get; set; } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// A bookmark payload hash of the bookmark to resume. |
| | | 33 | | /// </summary> |
| | 183 | 34 | | public string? StimulusHash { get; set; } |
| | | 35 | | |
| | | 36 | | /// <summary> |
| | | 37 | | /// The ID of the activity instance associated with the bookmark. |
| | | 38 | | /// </summary> |
| | 179 | 39 | | public string? ActivityInstanceId { get; set; } |
| | | 40 | | |
| | | 41 | | /// <summary> |
| | | 42 | | /// The type name of the activity associated with the bookmark. |
| | | 43 | | /// </summary> |
| | 183 | 44 | | public string? ActivityTypeName { get; set; } |
| | | 45 | | |
| | | 46 | | /// <summary> |
| | | 47 | | /// Any options to apply when resuming the bookmark. |
| | | 48 | | /// </summary> |
| | 177 | 49 | | public ResumeBookmarkOptions? Options { get; set; } |
| | | 50 | | |
| | | 51 | | /// <summary> |
| | | 52 | | /// The timestamp that the original queue item was created. |
| | | 53 | | /// </summary> |
| | 199 | 54 | | public DateTimeOffset OriginalCreatedAt { get; set; } |
| | | 55 | | |
| | | 56 | | /// <summary> |
| | | 57 | | /// The timestamp that this item was moved to the dead-letter store. |
| | | 58 | | /// </summary> |
| | 209 | 59 | | public DateTimeOffset DeadLetteredAt { get; set; } |
| | | 60 | | |
| | | 61 | | /// <summary> |
| | | 62 | | /// The reason this item was moved to the dead-letter store. |
| | | 63 | | /// </summary> |
| | 208 | 64 | | public string Reason { get; set; } = null!; |
| | | 65 | | |
| | | 66 | | /// <summary> |
| | | 67 | | /// The number of failed delivery attempts observed before dead-lettering. |
| | | 68 | | /// </summary> |
| | 177 | 69 | | public int DeliveryAttempts { get; set; } |
| | | 70 | | |
| | | 71 | | /// <summary> |
| | | 72 | | /// The timestamp of the last failed delivery attempt. |
| | | 73 | | /// </summary> |
| | 174 | 74 | | public DateTimeOffset? LastAttemptedAt { get; set; } |
| | | 75 | | |
| | | 76 | | /// <summary> |
| | | 77 | | /// The type of the last exception observed while processing this item. |
| | | 78 | | /// </summary> |
| | 176 | 79 | | public string? LastErrorType { get; set; } |
| | | 80 | | |
| | | 81 | | /// <summary> |
| | | 82 | | /// The message of the last exception observed while processing this item. |
| | | 83 | | /// </summary> |
| | 176 | 84 | | public string? LastErrorMessage { get; set; } |
| | | 85 | | |
| | | 86 | | /// <summary> |
| | | 87 | | /// Whether this item can be replayed. |
| | | 88 | | /// </summary> |
| | 342 | 89 | | public bool CanReplay { get; set; } = true; |
| | | 90 | | |
| | | 91 | | /// <summary> |
| | | 92 | | /// The timestamp that this item was replayed. |
| | | 93 | | /// </summary> |
| | 178 | 94 | | 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> |
| | 176 | 99 | | public string? ReplayedQueueItemId { get; set; } |
| | | 100 | | } |