< Summary

Information
Class: Elsa.Api.Client.Resources.Alterations.Models.AlterationJob
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/Alterations/Models/AlterationJob.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 45
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_PlanId()100%210%
get_WorkflowInstanceId()100%210%
get_Status()100%210%
get_Log()100%210%
get_CreatedAt()100%210%
get_StartedAt()100%210%
get_CompletedAt()100%210%

File(s)

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

#LineLine coverage
 1using Elsa.Api.Client.Resources.Alterations.Enums;
 2using Elsa.Api.Client.Shared.Models;
 3
 4namespace Elsa.Api.Client.Resources.Alterations.Models;
 5
 6/// <summary>
 7/// Represents the execution of the plan for an individual workflow instance.
 8/// </summary>
 9public class AlterationJob : Entity
 10{
 11    /// <summary>
 12    /// The ID of the plan that this job belongs to.
 13    /// </summary>
 014    public string PlanId { get; set; } = default!;
 15
 16    /// <summary>
 17    /// The ID of the workflow instance that this job applies to.
 18    /// </summary>
 019    public string WorkflowInstanceId { get; set; } = default!;
 20
 21    /// <summary>
 22    /// The status of the job.
 23    /// </summary>
 024    public AlterationJobStatus Status { get; set; }
 25
 26    /// <summary>
 27    /// The serialized log of the job.
 28    /// </summary>
 029    public ICollection<AlterationLogEntry>? Log { get; set; } = new List<AlterationLogEntry>();
 30
 31    /// <summary>
 32    /// The date and time at which the job was created.
 33    /// </summary>
 034    public DateTimeOffset CreatedAt { get; set; }
 35
 36    /// <summary>
 37    /// The date and time at which the job was started.
 38    /// </summary>
 039    public DateTimeOffset? StartedAt { get; set; }
 40
 41    /// <summary>
 42    /// The date and time at which the job was completed.
 43    /// </summary>
 044    public DateTimeOffset? CompletedAt { get; set; }
 45}