< 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: 16
Coverable lines: 16
Total lines: 93
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

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_WorkflowInstanceId()100%210%
get_ActivityId()100%210%
get_ActivityNodeId()100%210%
get_ActivityType()100%210%
get_ActivityTypeVersion()100%210%
get_ActivityName()100%210%
get_ActivityState()100%210%
get_Payload()100%210%
get_Outputs()100%210%
get_Properties()100%210%
get_Metadata()100%210%
get_Exception()100%210%
get_StartedAt()100%210%
get_HasBookmarks()100%210%
get_Status()100%210%
get_CompletedAt()100%210%

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 time at which the activity execution completed.
 91    /// </summary>
 092    public DateTimeOffset? CompletedAt { get; set; }
 93}