| | | 1 | | using Elsa.Common; |
| | | 2 | | using Elsa.Common.Entities; |
| | | 3 | | |
| | | 4 | | namespace Elsa.Workflows.Runtime.Entities; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Represents a workflow execution log entry. |
| | | 8 | | /// </summary> |
| | | 9 | | public class WorkflowExecutionLogRecord : Entity, ILogRecord |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// The ID of the workflow definition. |
| | | 13 | | /// </summary> |
| | 7266 | 14 | | public string WorkflowDefinitionId { get; set; } = null!; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// The version ID of the workflow definition. |
| | | 18 | | /// </summary> |
| | 7266 | 19 | | public string WorkflowDefinitionVersionId { get; set; } = null!; |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// The ID of the workflow instance. |
| | | 23 | | /// </summary> |
| | 7354 | 24 | | public string WorkflowInstanceId { get; set; } = null!; |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// The version of the workflow definition. |
| | | 28 | | /// </summary> |
| | 7266 | 29 | | public int WorkflowVersion { get; set; } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// The ID of the activity instance. |
| | | 33 | | /// </summary> |
| | 7266 | 34 | | public string ActivityInstanceId { get; set; } = null!; |
| | | 35 | | |
| | | 36 | | /// <summary> |
| | | 37 | | /// The ID of the parent activity instance. |
| | | 38 | | /// </summary> |
| | 7266 | 39 | | public string? ParentActivityInstanceId { get; set; } |
| | | 40 | | |
| | | 41 | | /// <summary> |
| | | 42 | | /// The ID of the activity. |
| | | 43 | | /// </summary> |
| | 7354 | 44 | | public string ActivityId { get; set; } = null!; |
| | | 45 | | |
| | | 46 | | /// <summary> |
| | | 47 | | /// The type of the activity. |
| | | 48 | | /// </summary> |
| | 7266 | 49 | | public string ActivityType { get; set; } = null!; |
| | | 50 | | |
| | | 51 | | /// <summary> |
| | | 52 | | /// The version of the activity type. |
| | | 53 | | /// </summary> |
| | 7266 | 54 | | public int ActivityTypeVersion { get; set; } |
| | | 55 | | |
| | | 56 | | /// <summary> |
| | | 57 | | /// The name of the activity. |
| | | 58 | | /// </summary> |
| | 7266 | 59 | | public string? ActivityName { get; set; } |
| | | 60 | | |
| | | 61 | | /// <summary> |
| | | 62 | | /// The unique ID of the node within the workflow graph. |
| | | 63 | | /// </summary> |
| | 7266 | 64 | | public string ActivityNodeId { get; set; } = null!; |
| | | 65 | | |
| | | 66 | | /// <summary> |
| | | 67 | | /// The time stamp of the log entry. |
| | | 68 | | /// </summary> |
| | 7266 | 69 | | public DateTimeOffset Timestamp { get; set; } |
| | | 70 | | |
| | | 71 | | /// <summary> |
| | | 72 | | /// A local sequence number of the log entry within a batch of log entries. This is used to order log entries whose |
| | | 73 | | /// </summary> |
| | 7266 | 74 | | public long Sequence { get; set; } |
| | | 75 | | |
| | | 76 | | /// <summary> |
| | | 77 | | /// The name of the event. |
| | | 78 | | /// </summary> |
| | 7274 | 79 | | public string? EventName { get; set; } |
| | | 80 | | |
| | | 81 | | /// <summary> |
| | | 82 | | /// The message. |
| | | 83 | | /// </summary> |
| | 16804 | 84 | | public string? Message { get; set; } |
| | | 85 | | |
| | | 86 | | /// <summary> |
| | | 87 | | /// The source of the event. |
| | | 88 | | /// </summary> |
| | 7266 | 89 | | public string? Source { get; set; } |
| | | 90 | | |
| | | 91 | | /// <summary> |
| | | 92 | | /// The state of the activity at the time of the log entry. |
| | | 93 | | /// </summary> |
| | | 94 | | [Obsolete("Look at the ActivityExecutionRecord.ActivityState property instead.")] |
| | 0 | 95 | | public IDictionary<string, object>? ActivityState { get; set; } |
| | | 96 | | |
| | | 97 | | /// <summary> |
| | | 98 | | /// Any additional payload associated with the log entry. |
| | | 99 | | /// </summary> |
| | 12072 | 100 | | public object? Payload { get; set; } |
| | | 101 | | } |