| | | 1 | | using Elsa.Common.Entities; |
| | | 2 | | |
| | | 3 | | namespace Elsa.Workflows.Runtime.Entities; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// A message that can be delivered to a workflow instance. |
| | | 7 | | /// </summary> |
| | | 8 | | public class WorkflowInboxMessage : Entity |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// The type name of the activity to deliver the message to. |
| | | 12 | | /// </summary> |
| | 0 | 13 | | 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> |
| | 0 | 18 | | public object BookmarkPayload { get; set; } = default!; |
| | | 19 | | |
| | | 20 | | /// <summary> |
| | | 21 | | /// The hash of the bookmark. |
| | | 22 | | /// </summary> |
| | 0 | 23 | | 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> |
| | 0 | 28 | | 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> |
| | 0 | 33 | | 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> |
| | 0 | 38 | | public string? ActivityInstanceId { get; set; } |
| | | 39 | | |
| | | 40 | | /// <summary> |
| | | 41 | | /// An optional set of inputs to deliver to the workflow instance. |
| | | 42 | | /// </summary> |
| | 0 | 43 | | public IDictionary<string, object>? Input { get; set; } |
| | | 44 | | |
| | | 45 | | /// <summary> |
| | | 46 | | /// The date and time the message was created. |
| | | 47 | | /// </summary> |
| | 0 | 48 | | public DateTimeOffset CreatedAt { get; set; } |
| | | 49 | | |
| | | 50 | | /// <summary> |
| | | 51 | | /// The date and time the message expires. |
| | | 52 | | /// </summary> |
| | 0 | 53 | | public DateTimeOffset ExpiresAt { get; set; } |
| | | 54 | | } |