< Summary

Information
Class: Elsa.Api.Client.Resources.WorkflowInstances.Models.WorkflowInstance
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowInstances/Models/WorkflowInstance.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 12
Coverable lines: 12
Total lines: 70
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_DefinitionId()100%210%
get_DefinitionVersionId()100%210%
get_Version()100%210%
get_WorkflowState()100%210%
get_Status()100%210%
get_SubStatus()100%210%
get_CorrelationId()100%210%
get_Name()100%210%
get_IncidentCount()100%210%
get_CreatedAt()100%210%
get_UpdatedAt()100%210%
get_FinishedAt()100%210%

File(s)

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

#LineLine coverage
 1using Elsa.Api.Client.Resources.WorkflowInstances.Enums;
 2using Elsa.Api.Client.Shared.Models;
 3
 4namespace Elsa.Api.Client.Resources.WorkflowInstances.Models;
 5
 6/// <summary>
 7/// Represents a workflow instance.
 8/// </summary>
 9public class WorkflowInstance : Entity
 10{
 11    /// <summary>
 12    /// The ID of the workflow definition.
 13    /// </summary>
 014    public string DefinitionId { get; set; } = default!;
 15
 16    /// <summary>
 17    /// The version ID of the workflow definition.
 18    /// </summary>
 019    public string DefinitionVersionId { get; set; } = default!;
 20
 21    /// <summary>
 22    /// The version of the workflow definition.
 23    /// </summary>
 024    public int Version { get; set; }
 25
 26    /// <summary>
 27    /// The state of the workflow instance.
 28    /// </summary>
 029    public WorkflowState WorkflowState { get; set; } = default!;
 30
 31    /// <summary>
 32    /// The status of the workflow instance.
 33    /// </summary>
 034    public WorkflowStatus Status { get; set; }
 35
 36    /// <summary>
 37    /// The sub-status of the workflow instance.
 38    /// </summary>
 039    public WorkflowSubStatus SubStatus { get; set; }
 40
 41    /// <summary>
 42    /// The ID of the workflow instance.
 43    /// </summary>
 044    public string? CorrelationId { get; set; }
 45
 46    /// <summary>
 47    /// The name of the workflow instance.
 48    /// </summary>
 049    public string? Name { get; set; }
 50
 51    /// <summary>
 52    /// The number of incidents that have occurred during execution, if any.
 53    /// </summary>
 054    public int IncidentCount { get; set; }
 55
 56    /// <summary>
 57    /// The timestamp when the workflow instance was created.
 58    /// </summary>
 059    public DateTimeOffset CreatedAt { get; set; }
 60
 61    /// <summary>
 62    /// The timestamp when the workflow instance was last executed.
 63    /// </summary>
 064    public DateTimeOffset UpdatedAt { get; set; }
 65
 66    /// <summary>
 67    /// The timestamp when the workflow instance was finished.
 68    /// </summary>
 069    public DateTimeOffset? FinishedAt { get; set; }
 70}