elsa-core/src/clients/Elsa.Client/Models/WorkflowBlueprint.cs
Sipke Schoorstra 993e08ea89
Refactored Switch Activity (#545)
* Add IfThen activity + sample

* Add match mode

* Rename IfThen to Switch
2020-12-29 16:40:21 +01:00

36 lines
1.4 KiB
C#

using System.Runtime.Serialization;
namespace Elsa.Client.Models
{
[DataContract]
public class WorkflowBlueprint : CompositeActivityBlueprint
{
[DataMember(Order = 1)] public int Version { get; set;}
[DataMember(Order = 2)] public string? TenantId { get; set;}
[DataMember(Order = 3)] public bool IsSingleton { get; set;}
[DataMember(Order = 4)] public bool IsEnabled { get; set;}
[DataMember(Order = 5)] public bool IsPublished { get; set;}
[DataMember(Order = 6)] public bool IsLatest { get; set;}
/// <summary>
/// An initial set of variables available to workflow instances.
/// </summary>
[DataMember(Order = 7)]
public Variables Variables { get; set;} = new();
/// <summary>
/// An optional context type around which this workflow revolves. For example, a document, a leave request or a job application.
/// </summary>
[DataMember(Order = 8)]
public WorkflowContextOptions? ContextOptions { get; set; }
[DataMember(Order = 9)] public WorkflowPersistenceBehavior PersistenceBehavior { get; set;}
[DataMember(Order = 10)] public bool DeleteCompletedInstances { get; set;}
/// <summary>
/// A dictionary to store application-specific properties for a given workflow.
/// </summary>
[DataMember(Order = 11)]
public Variables CustomAttributes { get; set;} = new();
}
}