< Summary

Information
Class: Elsa.Workflows.Api.Endpoints.WorkflowInstances.Export.Request
Assembly: Elsa.Workflows.Api
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Endpoints/WorkflowInstances/Export/Models.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 33
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_Ids()100%210%
get_IncludeBookmarks()100%210%
get_IncludeActivityExecutionLog()100%210%
get_IncludeWorkflowExecutionLog()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Endpoints/WorkflowInstances/Export/Models.cs

#LineLine coverage
 1namespace Elsa.Workflows.Api.Endpoints.WorkflowInstances.Export;
 2
 3/// <summary>
 4/// Exports the specified workflow definition as JSON download.
 5/// Either specify the <see cref="Id"/> or the <see cref="Ids"/> of the workflow instances to export.
 6/// </summary>
 7internal class Request
 8{
 9    /// <summary>
 10    /// The workflow instance ID.
 11    /// </summary>
 012    public string? Id { get; set; } = default!;
 13
 14    /// <summary>
 15    /// A list of workflow instance IDs.
 16    /// </summary>
 017    public ICollection<string> Ids { get; set; } = default!;
 18
 19    /// <summary>
 20    /// A flag indicating whether to include the bookmarks in the export.
 21    /// </summary>
 022    public bool IncludeBookmarks { get; set; }
 23
 24    /// <summary>
 25    /// A flag indicating whether to include the activity execution log in the export.
 26    /// </summary>
 027    public bool IncludeActivityExecutionLog { get; set; }
 28
 29    /// <summary>
 30    /// A flag indicating whether to include the workflow execution log in the export.
 31    /// </summary>
 032    public bool IncludeWorkflowExecutionLog { get; set; }
 33}