< 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: 18
Uncovered lines: 0
Coverable lines: 18
Total lines: 104
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_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>
 1014517    public string WorkflowInstanceId { get; set; } = null!;
 18
 19    /// <summary>
 20    /// Gets or sets the activity ID.
 21    /// </summary>
 1018022    public string ActivityId { get; set; } = null!;
 23
 24    /// <summary>
 25    /// Gets or sets the activity node ID.
 26    /// </summary>
 1014527    public string ActivityNodeId { get; set; } = null!;
 28
 29    /// <summary>
 30    /// The type of the activity.
 31    /// </summary>
 1021132    public string ActivityType { get; set; } = null!;
 33
 34    /// <summary>
 35    /// The version of the activity type.
 36    /// </summary>
 1014537    public int ActivityTypeVersion { get; set; }
 38
 39    /// <summary>
 40    /// The name of the activity.
 41    /// </summary>
 1014542    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>
 910847    public IDictionary<string, object?>? ActivityState { get; set; }
 48
 49    /// <summary>
 50    /// Any additional payload associated with the log record.
 51    /// </summary>
 776052    public IDictionary<string, object>? Payload { get; set; }
 53
 54    /// <summary>
 55    /// Any outputs provided by the activity.
 56    /// </summary>
 904057    public IDictionary<string, object?>? Outputs { get; set; }
 58
 59    /// <summary>
 60    /// Any properties provided by the activity.
 61    /// </summary>
 1147562    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>
 1152968    public IDictionary<string, object>? Metadata { get; set; }
 69
 70    /// <summary>
 71    /// Gets or sets the exception that occurred during the activity execution.
 72    /// </summary>
 1156173    public ExceptionState? Exception { get; set; }
 74
 75    /// <summary>
 76    /// Gets or sets the time at which the activity execution began.
 77    /// </summary>
 1014578    public DateTimeOffset StartedAt { get; set; }
 79
 80    /// <summary>
 81    /// Gets or sets whether the activity has any bookmarks.
 82    /// </summary>
 1014583    public bool HasBookmarks { get; set; }
 84
 85    /// <summary>
 86    /// Gets or sets the status of the activity.
 87    /// </summary>
 1014588    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>
 1014593    public int AggregateFaultCount { get; set; }
 94
 95    /// <summary>
 96    /// Gets or sets the time at which the activity execution completed.
 97    /// </summary>
 1015398    public DateTimeOffset? CompletedAt { get; set; }
 99}
 100
 101public partial class ActivityExecutionRecord
 102{
 6313103    [NotMapped] [JsonIgnore] public ActivityExecutionRecordSnapshot? SerializedSnapshot { get; set; }
 104}