< Summary

Information
Class: Elsa.Workflows.Runtime.Entities.WorkflowExecutionLogRecord
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Entities/WorkflowExecutionLogRecord.cs
Line coverage
94%
Covered lines: 17
Uncovered lines: 1
Coverable lines: 18
Total lines: 101
Line coverage: 94.4%
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_WorkflowDefinitionId()100%11100%
get_WorkflowDefinitionVersionId()100%11100%
get_WorkflowInstanceId()100%11100%
get_WorkflowVersion()100%11100%
get_ActivityInstanceId()100%11100%
get_ParentActivityInstanceId()100%11100%
get_ActivityId()100%11100%
get_ActivityType()100%11100%
get_ActivityTypeVersion()100%11100%
get_ActivityName()100%11100%
get_ActivityNodeId()100%11100%
get_Timestamp()100%11100%
get_Sequence()100%11100%
get_EventName()100%11100%
get_Message()100%11100%
get_Source()100%11100%
get_ActivityState()100%210%
get_Payload()100%11100%

File(s)

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

#LineLine coverage
 1using Elsa.Common;
 2using Elsa.Common.Entities;
 3
 4namespace Elsa.Workflows.Runtime.Entities;
 5
 6/// <summary>
 7/// Represents a workflow execution log entry.
 8/// </summary>
 9public class WorkflowExecutionLogRecord : Entity, ILogRecord
 10{
 11    /// <summary>
 12    /// The ID of the workflow definition.
 13    /// </summary>
 726614    public string WorkflowDefinitionId { get; set; } = null!;
 15
 16    /// <summary>
 17    /// The version ID of the workflow definition.
 18    /// </summary>
 726619    public string WorkflowDefinitionVersionId { get; set; } = null!;
 20
 21    /// <summary>
 22    /// The ID of the workflow instance.
 23    /// </summary>
 735424    public string WorkflowInstanceId { get; set; } = null!;
 25
 26    /// <summary>
 27    /// The version of the workflow definition.
 28    /// </summary>
 726629    public int WorkflowVersion { get; set; }
 30
 31    /// <summary>
 32    /// The ID of the activity instance.
 33    /// </summary>
 726634    public string ActivityInstanceId { get; set; } = null!;
 35
 36    /// <summary>
 37    /// The ID of the parent activity instance.
 38    /// </summary>
 726639    public string? ParentActivityInstanceId { get; set; }
 40
 41    /// <summary>
 42    /// The ID of the activity.
 43    /// </summary>
 735444    public string ActivityId { get; set; } = null!;
 45
 46    /// <summary>
 47    /// The type of the activity.
 48    /// </summary>
 726649    public string ActivityType { get; set; } = null!;
 50
 51    /// <summary>
 52    /// The version of the activity type.
 53    /// </summary>
 726654    public int ActivityTypeVersion { get; set; }
 55
 56    /// <summary>
 57    /// The name of the activity.
 58    /// </summary>
 726659    public string? ActivityName { get; set; }
 60
 61    /// <summary>
 62    /// The unique ID of the node within the workflow graph.
 63    /// </summary>
 726664    public string ActivityNodeId { get; set; } = null!;
 65
 66    /// <summary>
 67    /// The time stamp of the log entry.
 68    /// </summary>
 726669    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>
 726674    public long Sequence { get; set; }
 75
 76    /// <summary>
 77    /// The name of the event.
 78    /// </summary>
 727479    public string? EventName { get; set; }
 80
 81    /// <summary>
 82    /// The message.
 83    /// </summary>
 1680484    public string? Message { get; set; }
 85
 86    /// <summary>
 87    /// The source of the event.
 88    /// </summary>
 726689    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.")]
 095    public IDictionary<string, object>? ActivityState { get; set; }
 96
 97    /// <summary>
 98    /// Any additional payload associated with the log entry.
 99    /// </summary>
 12072100    public object? Payload { get; set; }
 101}