< Summary

Information
Class: Elsa.Api.Client.Resources.WorkflowInstances.Models.WorkflowInstanceSummary
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowInstances/Models/WorkflowInstanceSummary.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 12
Coverable lines: 12
Total lines: 49
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_Id()100%210%
get_DefinitionId()100%210%
get_DefinitionVersionId()100%210%
get_Version()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/WorkflowInstanceSummary.cs

#LineLine coverage
 1using Elsa.Api.Client.Resources.WorkflowInstances.Enums;
 2using JetBrains.Annotations;
 3
 4namespace Elsa.Api.Client.Resources.WorkflowInstances.Models;
 5
 6/// <summary>
 7/// Represents a summary view of a <see cref="WorkflowInstance"/>.
 8/// </summary>
 9[PublicAPI]
 10public record WorkflowInstanceSummary
 11{
 12    /// <summary>The ID of the workflow instance.</summary>
 013    public string Id { get; set; } = default!;
 14
 15    /// <summary>The ID of the workflow definition.</summary>
 016    public string DefinitionId { get; set; } = default!;
 17
 18    /// <summary>The version ID of the workflow definition.</summary>
 019    public string DefinitionVersionId { get; set; } = default!;
 20
 21    /// <summary>The version of the workflow definition.</summary>
 022    public int Version { get; set; }
 23
 24    /// <summary>The status of the workflow instance.</summary>
 025    public WorkflowStatus Status { get; set; }
 26
 27    /// <summary>The sub-status of the workflow instance.</summary>
 028    public WorkflowSubStatus SubStatus { get; set; }
 29
 30    /// <summary>The ID of the workflow instance.</summary>
 031    public string? CorrelationId { get; set; }
 32
 33    /// <summary>The name of the workflow instance.</summary>
 034    public string? Name { get; set; }
 35
 36    /// <summary>
 37    /// The number of incidents that have occurred during execution, if any.
 38    /// </summary>
 039    public int IncidentCount { get; set; }
 40
 41    /// <summary>The timestamp when the workflow instance was created.</summary>
 042    public DateTimeOffset CreatedAt { get; set; }
 43
 44    /// <summary>The timestamp when the workflow instance was last executed.</summary>
 045    public DateTimeOffset UpdatedAt { get; set; }
 46
 47    /// <summary>The timestamp when the workflow instance was finished.</summary>
 048    public DateTimeOffset? FinishedAt { get; set; }
 49}