| | | 1 | | using System.Text.Json.Serialization; |
| | | 2 | | |
| | | 3 | | namespace Elsa.Workflows.Models; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// A bookmark represents a location in a workflow where the workflow can be resumed at a later time. |
| | | 7 | | /// </summary> |
| | | 8 | | /// <param name="Id">The ID of the bookmark.</param> |
| | | 9 | | /// <param name="Name">The name of the bookmark.</param> |
| | | 10 | | /// <param name="Hash">The hash of the bookmark.</param> |
| | | 11 | | /// <param name="Payload">The data associated with the bookmark.</param> |
| | | 12 | | /// <param name="ActivityId">The ID of the activity associated with the bookmark.</param> |
| | | 13 | | /// <param name="ActivityNodeId">The ID of the activity node associated with the bookmark.</param> |
| | | 14 | | /// <param name="ActivityInstanceId">The ID of the activity instance associated with the bookmark.</param> |
| | | 15 | | /// <param name="CreatedAt">The date and time the bookmark was created.</param> |
| | | 16 | | /// <param name="AutoBurn">Whether or not the bookmark should be automatically burned.</param> |
| | | 17 | | /// <param name="CallbackMethodName">The name of the method on the activity class to invoke when the bookmark is resumed |
| | | 18 | | /// <param name="AutoComplete">Whether or not the activity should be automatically completed when the bookmark is resume |
| | | 19 | | /// <param name="Metadata">Custom properties associated with the bookmark.</param> |
| | 114 | 20 | | public record Bookmark( |
| | 322 | 21 | | string Id, |
| | 491 | 22 | | string Name, |
| | 126 | 23 | | string Hash, |
| | 167 | 24 | | object? Payload, |
| | 90 | 25 | | string ActivityId, |
| | 180 | 26 | | string ActivityNodeId, |
| | 414 | 27 | | string? ActivityInstanceId, |
| | 126 | 28 | | DateTimeOffset CreatedAt, |
| | 164 | 29 | | bool AutoBurn = true, |
| | 120 | 30 | | string? CallbackMethodName = null, |
| | 106 | 31 | | bool AutoComplete = true, |
| | 194 | 32 | | IDictionary<string, string>? Metadata = null) |
| | | 33 | | { |
| | | 34 | | /// <inheritdoc /> |
| | | 35 | | [JsonConstructor] |
| | 46 | 36 | | public Bookmark() : this("", "", "", null, "", "", "", default, false) |
| | | 37 | | { |
| | 46 | 38 | | } |
| | | 39 | | } |