< Summary

Information
Class: Elsa.Workflows.Models.WorkflowOptions
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Models/WorkflowOptions.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 37
Line coverage: 100%
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_ActivationStrategyType()100%11100%
get_UsableAsActivity()100%11100%
get_AutoUpdateConsumingWorkflows()100%11100%
get_ActivityCategory()100%11100%
get_IncidentStrategyType()100%11100%
get_CommitStrategyName()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Models/WorkflowOptions.cs

#LineLine coverage
 1namespace Elsa.Workflows.Models;
 2
 3/// <summary>
 4/// Provides workflow options.
 5/// </summary>
 6public class WorkflowOptions
 7{
 8    /// <summary>
 9    /// The type of <see cref="IWorkflowActivationStrategy"/> to apply when new instances are requested to be created.
 10    /// </summary>
 60511    public Type? ActivationStrategyType { get; set; }
 12
 13    /// <summary>
 14    /// Used to decide if the workflow can be used as an activity.
 15    /// </summary>
 357316    public bool? UsableAsActivity { get; set; }
 17
 18    /// <summary>
 19    /// Used to decide if the consuming workflows should be updated automatically to use the last published version of t
 20    /// </summary>
 371821    public bool AutoUpdateConsumingWorkflows { get; set; }
 22
 23    /// <summary>
 24    /// The category to use when the workflow is used as an activity.
 25    /// </summary>
 135526    public string? ActivityCategory { get; set; }
 27
 28    /// <summary>
 29    /// The type of <see cref="IIncidentStrategy"/> to use when a fault occurs in the workflow.
 30    /// </summary>
 73131    public Type? IncidentStrategyType { get; set; }
 32
 33    /// <summary>
 34    /// The options for committing workflow state.
 35    /// </summary>
 705136    public string? CommitStrategyName { get; set; }
 37}