| | | 1 | | using Elsa.Workflows.LogPersistence; |
| | | 2 | | using Elsa.Workflows.Management.Models; |
| | | 3 | | |
| | | 4 | | namespace Elsa.Workflows.Management.Options; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Options for the management module. |
| | | 8 | | /// </summary> |
| | | 9 | | public class ManagementOptions |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// A collection of activity types that are available to the system. |
| | | 13 | | /// </summary> |
| | 177 | 14 | | public HashSet<Type> ActivityTypes { get; set; } = new(); |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// A collection of types that are available to the system as variable types. |
| | | 18 | | /// </summary> |
| | 112 | 19 | | public HashSet<VariableDescriptor> VariableDescriptors { get; set; } = new(new VariableDescriptor.VariableDescriptor |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// The format to use for compressing workflow state. |
| | | 23 | | /// </summary> |
| | 3179 | 24 | | public string? CompressionAlgorithm { get; set; } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// The default Log Persistence Mode to use for all the system |
| | | 28 | | /// </summary> |
| | 5383 | 29 | | public LogPersistenceMode LogPersistenceMode { get; set; } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// A mode that does not allow editing workflows. |
| | | 33 | | /// </summary> |
| | 10 | 34 | | public bool IsReadOnlyMode { get; set; } |
| | | 35 | | |
| | | 36 | | /// <summary> |
| | | 37 | | /// Determines whether publishing a workflow definition fails when the workflow has validation errors. |
| | | 38 | | /// When <c>true</c> (the default as of 3.8.0), publishing fails if any validation errors are present. |
| | | 39 | | /// When <c>false</c>, publishing is allowed to succeed and any validation errors are returned as warnings |
| | | 40 | | /// on the publish result. This allows publishing workflows that intentionally leave required properties |
| | | 41 | | /// blank (for example, an empty Cron expression used to disable a trigger). In 3.6.x and 3.7.x this |
| | | 42 | | /// defaulted to <c>false</c> (opt-in); as of 3.8.0 it defaults to <c>true</c> (opt-out). |
| | | 43 | | /// </summary> |
| | 6 | 44 | | public bool FailOnValidationErrors { get; set; } = true; |
| | | 45 | | } |