| | | 1 | | using Elsa.Api.Client.Resources.WorkflowInstances.Models; |
| | | 2 | | using Elsa.Api.Client.Shared.Models; |
| | | 3 | | using JetBrains.Annotations; |
| | | 4 | | |
| | | 5 | | namespace Elsa.Api.Client.Resources.ActivityExecutions.Models; |
| | | 6 | | |
| | | 7 | | /// <summary> |
| | | 8 | | /// Represents a single workflow execution, associated with an individual activity instance. |
| | | 9 | | /// </summary> |
| | | 10 | | [UsedImplicitly] |
| | | 11 | | public class ActivityExecutionRecord : Entity |
| | | 12 | | { |
| | | 13 | | /// <summary> |
| | | 14 | | /// Gets or sets the workflow instance ID. |
| | | 15 | | /// </summary> |
| | 0 | 16 | | public string WorkflowInstanceId { get; set; } = null!; |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// Gets or sets the activity ID. |
| | | 20 | | /// </summary> |
| | 0 | 21 | | public string ActivityId { get; set; } = null!; |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// Gets or sets the activity node ID. |
| | | 25 | | /// </summary> |
| | 0 | 26 | | public string ActivityNodeId { get; set; } = null!; |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// The type of the activity. |
| | | 30 | | /// </summary> |
| | 0 | 31 | | public string ActivityType { get; set; } = null!; |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// The version of the activity type. |
| | | 35 | | /// </summary> |
| | 0 | 36 | | public int ActivityTypeVersion { get; set; } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// The name of the activity. |
| | | 40 | | /// </summary> |
| | 0 | 41 | | public string? ActivityName { get; set; } = null!; |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// The state of the activity at the time this record is created or last updated. |
| | | 45 | | /// </summary> |
| | 0 | 46 | | public IDictionary<string, object?>? ActivityState { get; set; } |
| | | 47 | | |
| | | 48 | | /// <summary> |
| | | 49 | | /// Any additional payload associated with the log record. |
| | | 50 | | /// </summary> |
| | 0 | 51 | | public IDictionary<string, object?>? Payload { get; set; } |
| | | 52 | | |
| | | 53 | | /// <summary> |
| | | 54 | | /// Any outputs provided by the activity. |
| | | 55 | | /// </summary> |
| | 0 | 56 | | public IDictionary<string, object?>? Outputs { get; set; } |
| | | 57 | | |
| | | 58 | | /// <summary> |
| | | 59 | | /// Any properties provided by the activity. |
| | | 60 | | /// </summary> |
| | 0 | 61 | | public IDictionary<string, object?> Properties { get; set; } = new Dictionary<string, object?>(); |
| | | 62 | | |
| | | 63 | | /// <summary> |
| | | 64 | | /// Any metadata provided by the activity. In contrast to the <see cref="Properties"/> property, this metadata is al |
| | | 65 | | /// It is therefore not suitable for larger payloads. |
| | | 66 | | /// </summary> |
| | 0 | 67 | | public IDictionary<string, object?> Metadata { get; set; } = new Dictionary<string, object?>(); |
| | | 68 | | |
| | | 69 | | /// <summary> |
| | | 70 | | /// Gets or sets the exception that occurred during the activity execution. |
| | | 71 | | /// </summary> |
| | 0 | 72 | | public ExceptionState? Exception { get; set; } |
| | | 73 | | |
| | | 74 | | /// <summary> |
| | | 75 | | /// Gets or sets the time at which the activity execution began. |
| | | 76 | | /// </summary> |
| | 0 | 77 | | public DateTimeOffset StartedAt { get; set; } = default!; |
| | | 78 | | |
| | | 79 | | /// <summary> |
| | | 80 | | /// Gets or sets whether the activity has any bookmarks. |
| | | 81 | | /// </summary> |
| | 0 | 82 | | public bool HasBookmarks { get; set; } |
| | | 83 | | |
| | | 84 | | /// <summary> |
| | | 85 | | /// Gets or sets the status of the activity. |
| | | 86 | | /// </summary> |
| | 0 | 87 | | public ActivityStatus Status { get; set; } |
| | | 88 | | |
| | | 89 | | /// <summary> |
| | | 90 | | /// Gets or sets the time at which the activity execution completed. |
| | | 91 | | /// </summary> |
| | 0 | 92 | | public DateTimeOffset? CompletedAt { get; set; } |
| | | 93 | | } |