| | | 1 | | using Elsa.Common.Entities; |
| | | 2 | | |
| | | 3 | | namespace Elsa.Workflows.Runtime.Entities; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Represents a bookmark that has been stored in the database. |
| | | 7 | | /// </summary> |
| | | 8 | | public class StoredBookmark : Entity |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// The name of the activity type associated with the bookmark. |
| | | 12 | | /// </summary> |
| | | 13 | | [Obsolete("Use Name instead.")] public string ActivityTypeName |
| | | 14 | | { |
| | 624 | 15 | | get => Name!; |
| | 93 | 16 | | set => Name = value; |
| | | 17 | | } |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// The name of the bookmark, if any. Typically assigned a stimulus name. |
| | | 21 | | /// </summary> |
| | 962 | 22 | | public string? Name { get; set; } |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// The hash of the bookmark. |
| | | 26 | | /// </summary> |
| | 57 | 27 | | public string Hash { get; set; } = null!; |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// The ID of the workflow instance associated with the bookmark. |
| | | 31 | | /// </summary> |
| | 158 | 32 | | public string WorkflowInstanceId { get; set; } = null!; |
| | | 33 | | |
| | | 34 | | /// <summary> |
| | | 35 | | /// The ID of the activity instance associated with the bookmark. |
| | | 36 | | /// </summary> |
| | 61 | 37 | | public string? ActivityInstanceId { get; set; } |
| | | 38 | | |
| | | 39 | | /// <summary> |
| | | 40 | | /// The correlation ID of the workflow instance associated with the bookmark. |
| | | 41 | | /// </summary> |
| | 57 | 42 | | public string? CorrelationId { get; set; } |
| | | 43 | | |
| | | 44 | | /// <summary> |
| | | 45 | | /// The data associated with the bookmark. |
| | | 46 | | /// </summary> |
| | 218 | 47 | | public object? Payload { get; set; } |
| | | 48 | | |
| | | 49 | | /// <summary> |
| | | 50 | | /// Custom properties associated with the bookmark. |
| | | 51 | | /// </summary> |
| | 186 | 52 | | public IDictionary<string, string>? Metadata { get; set; } |
| | | 53 | | |
| | | 54 | | /// <summary> |
| | | 55 | | /// The date and time the bookmark was created. |
| | | 56 | | /// </summary> |
| | 57 | 57 | | public DateTimeOffset CreatedAt { get; set; } |
| | | 58 | | } |