< Summary

Information
Class: Elsa.Workflows.Runtime.Entities.ActivityExecutionRecord
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Entities/ActivityExecutionRecord.cs
Line coverage
100%
Covered lines: 22
Uncovered lines: 0
Coverable lines: 22
Total lines: 127
Line coverage: 100%
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

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_WorkflowInstanceId()100%11100%
get_ActivityId()100%11100%
get_ActivityNodeId()100%11100%
get_ActivityType()100%11100%
get_ActivityTypeVersion()100%11100%
get_ActivityName()100%11100%
get_ActivityState()100%11100%
get_Payload()100%11100%
get_Outputs()100%11100%
get_Properties()100%11100%
get_Metadata()100%11100%
get_Exception()100%11100%
get_StartedAt()100%11100%
get_HasBookmarks()100%11100%
get_Status()100%11100%
get_AggregateFaultCount()100%11100%
get_CompletedAt()100%11100%
get_SchedulingActivityExecutionId()100%11100%
get_SchedulingActivityId()100%11100%
get_SchedulingWorkflowInstanceId()100%11100%
get_CallStackDepth()100%11100%
get_SerializedSnapshot()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Entities/ActivityExecutionRecord.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations.Schema;
 2using System.Text.Json.Serialization;
 3using Elsa.Common;
 4using Elsa.Common.Entities;
 5using Elsa.Workflows.State;
 6
 7namespace Elsa.Workflows.Runtime.Entities;
 8
 9/// <summary>
 10/// Represents a single activity execution of an activity instance.
 11/// </summary>
 12public partial class ActivityExecutionRecord : Entity, ILogRecord
 13{
 14    /// <summary>
 15    /// Gets or sets the workflow instance ID.
 16    /// </summary>
 1128417    public string WorkflowInstanceId { get; set; } = null!;
 18
 19    /// <summary>
 20    /// Gets or sets the activity ID.
 21    /// </summary>
 1131722    public string ActivityId { get; set; } = null!;
 23
 24    /// <summary>
 25    /// Gets or sets the activity node ID.
 26    /// </summary>
 1128427    public string ActivityNodeId { get; set; } = null!;
 28
 29    /// <summary>
 30    /// The type of the activity.
 31    /// </summary>
 1135032    public string ActivityType { get; set; } = null!;
 33
 34    /// <summary>
 35    /// The version of the activity type.
 36    /// </summary>
 1128437    public int ActivityTypeVersion { get; set; }
 38
 39    /// <summary>
 40    /// The name of the activity.
 41    /// </summary>
 1125642    public string? ActivityName { get; set; }
 43
 44    /// <summary>
 45    /// The state of the activity at the time this record is created or last updated.
 46    /// </summary>
 1018247    public IDictionary<string, object?>? ActivityState { get; set; }
 48
 49    /// <summary>
 50    /// Any additional payload associated with the log record.
 51    /// </summary>
 861052    public IDictionary<string, object>? Payload { get; set; }
 53
 54    /// <summary>
 55    /// Any outputs provided by the activity.
 56    /// </summary>
 1001957    public IDictionary<string, object?>? Outputs { get; set; }
 58
 59    /// <summary>
 60    /// Any properties provided by the activity.
 61    /// </summary>
 1271862    public IDictionary<string, object>? Properties { get; set; }
 63
 64    /// <summary>
 65    /// Lightweight metadata associated with the activity execution.
 66    /// This information will be retained as part of the activity execution summary record.
 67    /// </summary>
 1278068    public IDictionary<string, object>? Metadata { get; set; }
 69
 70    /// <summary>
 71    /// Gets or sets the exception that occurred during the activity execution.
 72    /// </summary>
 1281673    public ExceptionState? Exception { get; set; }
 74
 75    /// <summary>
 76    /// Gets or sets the time at which the activity execution began.
 77    /// </summary>
 1128478    public DateTimeOffset StartedAt { get; set; }
 79
 80    /// <summary>
 81    /// Gets or sets whether the activity has any bookmarks.
 82    /// </summary>
 1125683    public bool HasBookmarks { get; set; }
 84
 85    /// <summary>
 86    /// Gets or sets the status of the activity.
 87    /// </summary>
 1128488    public ActivityStatus Status { get; set; }
 89
 90    /// <summary>
 91    /// Gets or sets the aggregated count of faults encountered during the execution of the activity instance and its de
 92    /// </summary>
 1125693    public int AggregateFaultCount { get; set; }
 94
 95    /// <summary>
 96    /// Gets or sets the time at which the activity execution completed.
 97    /// </summary>
 1126498    public DateTimeOffset? CompletedAt { get; set; }
 99
 100    /// <summary>
 101    /// The ID of the activity execution context that scheduled this activity execution.
 102    /// This represents the temporal/execution predecessor that directly triggered execution of this activity.
 103    /// </summary>
 7062104    public string? SchedulingActivityExecutionId { get; set; }
 105
 106    /// <summary>
 107    /// The ID of the activity that scheduled this activity execution (denormalized for convenience).
 108    /// </summary>
 7008109    public string? SchedulingActivityId { get; set; }
 110
 111    /// <summary>
 112    /// The workflow instance ID of the workflow that scheduled this activity execution.
 113    /// This is set when crossing workflow boundaries (e.g., via ExecuteWorkflow or DispatchWorkflow).
 114    /// </summary>
 7037115    public string? SchedulingWorkflowInstanceId { get; set; }
 116
 117    /// <summary>
 118    /// The depth of this activity in the call stack (0 for root activities).
 119    /// Calculated by traversing the SchedulingActivityExecutionId chain until reaching null.
 120    /// </summary>
 7008121    public int? CallStackDepth { get; set; }
 122}
 123
 124public partial class ActivityExecutionRecord
 125{
 7007126    [NotMapped] [JsonIgnore] public ActivityExecutionRecordSnapshot? SerializedSnapshot { get; set; }
 127}