< Summary

Information
Class: Elsa.Api.Client.Resources.WorkflowDefinitions.Models.WorkflowDefinitionModel
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowDefinitions/Models/WorkflowDefinitionModel.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 12
Coverable lines: 12
Total lines: 72
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_Name()100%210%
get_Description()100%210%
get_ToolVersion()100%210%
get_Variables()100%210%
get_Inputs()100%210%
get_Outputs()100%210%
get_Outcomes()100%210%
get_CustomProperties()100%210%
get_IsReadonly()100%210%
get_Options()100%210%
get_Root()100%210%

File(s)

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

#LineLine coverage
 1using System.Text.Json.Nodes;
 2using Elsa.Api.Client.Shared.Models;
 3using JetBrains.Annotations;
 4
 5namespace Elsa.Api.Client.Resources.WorkflowDefinitions.Models;
 6
 7/// <summary>
 8/// Represents a serializable workflow definition.
 9/// </summary>
 10[PublicAPI]
 11public class WorkflowDefinitionModel : LinkedEntity
 12{
 13    /// <summary>
 14    /// Gets or sets the definition ID of the workflow definition.
 15    /// </summary>
 016    public string DefinitionId { get; set; } = default!;
 17
 18    /// <summary>
 19    /// Gets or sets the name of the workflow definition.
 20    /// </summary>
 021    public string? Name { get; set; }
 22
 23    /// <summary>
 24    /// Gets or sets the description of the workflow definition.
 25    /// </summary>
 026    public string? Description { get; set; }
 27
 28    /// <summary>
 29    /// Gets or sets the version of the tool that created the workflow definition.
 30    /// </summary>
 031    public Version? ToolVersion { get; set; }
 32
 33    /// <summary>
 34    /// Gets or sets the variables of the workflow definition.
 35    /// </summary>
 036    public ICollection<VariableDefinition>? Variables { get; set; }
 37
 38    /// <summary>
 39    /// Gets or sets the inputs of the workflow definition.
 40    /// </summary>
 041    public ICollection<InputDefinition>? Inputs { get; set; }
 42
 43    /// <summary>
 44    /// Gets or sets the outputs of the workflow definition.
 45    /// </summary>
 046    public ICollection<OutputDefinition>? Outputs { get; set; }
 47
 48    /// <summary>
 49    /// Gets or sets the outcomes of the workflow definition.
 50    /// </summary>
 051    public ICollection<string>? Outcomes { get; set; }
 52
 53    /// <summary>
 54    /// Gets or sets the custom properties associated with the workflow definition.
 55    /// </summary>
 056    public IDictionary<string, object>? CustomProperties { get; set; }
 57
 58    /// <summary>
 59    /// Gets or sets whether the workflow definition is read-only.
 60    /// </summary>
 061    public bool IsReadonly { get; set; }
 62
 63    /// <summary>
 64    /// Gets or sets the <see cref="WorkflowOptions"/> of the workflow definition.
 65    /// </summary>
 066    public WorkflowOptions? Options { get; set; }
 67
 68    /// <summary>
 69    /// Gets or sets the root activity of the workflow definition.
 70    /// </summary>
 071    public JsonObject? Root { get; set; }
 72}