< Summary

Information
Class: Elsa.Api.Client.Resources.ActivityExecutions.Models.ActivityExecutionRecord
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/ActivityExecutions/Models/ActivityExecutionRecord.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 21
Coverable lines: 21
Total lines: 121
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

File(s)

/home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/ActivityExecutions/Models/ActivityExecutionRecord.cs

#LineLine coverage
 1using Elsa.Api.Client.Resources.WorkflowInstances.Models;
 2using Elsa.Api.Client.Shared.Models;
 3using JetBrains.Annotations;
 4
 5namespace 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]
 11public class ActivityExecutionRecord : Entity
 12{
 13    /// <summary>
 14    /// Gets or sets the workflow instance ID.
 15    /// </summary>
 016    public string WorkflowInstanceId { get; set; } = null!;
 17
 18    /// <summary>
 19    /// Gets or sets the activity ID.
 20    /// </summary>
 021    public string ActivityId { get; set; } = null!;
 22
 23    /// <summary>
 24    /// Gets or sets the activity node ID.
 25    /// </summary>
 026    public string ActivityNodeId { get; set; } = null!;
 27
 28    /// <summary>
 29    /// The type of the activity.
 30    /// </summary>
 031    public string ActivityType { get; set; } = null!;
 32
 33    /// <summary>
 34    /// The version of the activity type.
 35    /// </summary>
 036    public int ActivityTypeVersion { get; set; }
 37
 38    /// <summary>
 39    /// The name of the activity.
 40    /// </summary>
 041    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>
 046    public IDictionary<string, object?>? ActivityState { get; set; }
 47
 48    /// <summary>
 49    /// Any additional payload associated with the log record.
 50    /// </summary>
 051    public IDictionary<string, object?>? Payload { get; set; }
 52
 53    /// <summary>
 54    /// Any outputs provided by the activity.
 55    /// </summary>
 056    public IDictionary<string, object?>? Outputs { get; set; }
 57
 58    /// <summary>
 59    /// Any properties provided by the activity.
 60    /// </summary>
 061    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>
 067    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>
 072    public ExceptionState? Exception { get; set; }
 73
 74    /// <summary>
 75    /// Gets or sets the time at which the activity execution began.
 76    /// </summary>
 077    public DateTimeOffset StartedAt { get; set; } = default!;
 78
 79    /// <summary>
 80    /// Gets or sets whether the activity has any bookmarks.
 81    /// </summary>
 082    public bool HasBookmarks { get; set; }
 83
 84    /// <summary>
 85    /// Gets or sets the status of the activity.
 86    /// </summary>
 087    public ActivityStatus Status { get; set; }
 88
 89    /// <summary>
 90    /// Gets or sets the aggregated count of faults encountered during the execution of the activity instance and its de
 91    /// </summary>
 092    public int AggregateFaultCount { get; set; }
 93
 94    /// <summary>
 95    /// Gets or sets the time at which the activity execution completed.
 96    /// </summary>
 097    public DateTimeOffset? CompletedAt { get; set; }
 98
 99    /// <summary>
 100    /// The ID of the activity execution context that scheduled this activity execution.
 101    /// This represents the temporal/execution predecessor that directly triggered execution of this activity.
 102    /// </summary>
 0103    public string? SchedulingActivityExecutionId { get; set; }
 104
 105    /// <summary>
 106    /// The ID of the activity that scheduled this activity execution (denormalized for convenience).
 107    /// </summary>
 0108    public string? SchedulingActivityId { get; set; }
 109
 110    /// <summary>
 111    /// The workflow instance ID of the workflow that scheduled this activity execution.
 112    /// This is set when crossing workflow boundaries (e.g., via ExecuteWorkflow or DispatchWorkflow).
 113    /// </summary>
 0114    public string? SchedulingWorkflowInstanceId { get; set; }
 115
 116    /// <summary>
 117    /// The depth of this activity in the call stack (0 for root activities).
 118    /// Calculated by traversing the SchedulingActivityExecutionId chain until reaching null.
 119    /// </summary>
 0120    public int? CallStackDepth { get; set; }
 121}