< Summary

Information
Class: Elsa.Alterations.Core.Entities.AlterationJob
Assembly: Elsa.Alterations.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Alterations.Core/Entities/AlterationJob.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 46
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/modules/Elsa.Alterations.Core/Entities/AlterationJob.cs

#LineLine coverage
 1using Elsa.Alterations.Core.Enums;
 2using Elsa.Alterations.Core.Models;
 3using Elsa.Common.Entities;
 4
 5namespace Elsa.Alterations.Core.Entities;
 6
 7/// <summary>
 8/// Represents the execution of the plan for an individual workflow instance.
 9/// </summary>
 10public class AlterationJob : Entity
 11{
 12    /// <summary>
 13    /// The ID of the plan that this job belongs to.
 14    /// </summary>
 015    public string PlanId { get; set; } = null!;
 16
 17    /// <summary>
 18    /// The ID of the workflow instance that this job applies to.
 19    /// </summary>
 020    public string WorkflowInstanceId { get; set; } = null!;
 21
 22    /// <summary>
 23    /// The status of the job.
 24    /// </summary>
 025    public AlterationJobStatus Status { get; set; }
 26
 27    /// <summary>
 28    /// The serialized log of the job.
 29    /// </summary>
 030    public ICollection<AlterationLogEntry>? Log { get; set; } = new List<AlterationLogEntry>();
 31
 32    /// <summary>
 33    /// The date and time at which the job was created.
 34    /// </summary>
 035    public DateTimeOffset CreatedAt { get; set; }
 36
 37    /// <summary>
 38    /// The date and time at which the job was started.
 39    /// </summary>
 040    public DateTimeOffset? StartedAt { get; set; }
 41
 42    /// <summary>
 43    /// The date and time at which the job was completed.
 44    /// </summary>
 045    public DateTimeOffset? CompletedAt { get; set; }
 46}