| | | 1 | | using Elsa.Workflows.Models; |
| | | 2 | | using JetBrains.Annotations; |
| | | 3 | | |
| | | 4 | | namespace Elsa.Workflows.Management.Models; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Represents a serializable workflow definition. |
| | | 8 | | /// </summary> |
| | | 9 | | [PublicAPI] |
| | | 10 | | public class WorkflowDefinitionModel |
| | | 11 | | { |
| | | 12 | | /// <summary> |
| | | 13 | | /// Represents a serializable workflow definition. |
| | | 14 | | /// </summary> |
| | 2132 | 15 | | public WorkflowDefinitionModel() { } |
| | | 16 | | |
| | | 17 | | /// <summary> |
| | | 18 | | /// Represents a serializable workflow definition. |
| | | 19 | | /// </summary> |
| | 1 | 20 | | public WorkflowDefinitionModel(string id, |
| | 1 | 21 | | string definitionId, |
| | 1 | 22 | | string? tenantId, |
| | 1 | 23 | | string? name, |
| | 1 | 24 | | string? description, |
| | 1 | 25 | | DateTimeOffset createdAt, |
| | 1 | 26 | | int version, |
| | 1 | 27 | | Version? toolVersion, |
| | 1 | 28 | | ICollection<VariableDefinition>? variables, |
| | 1 | 29 | | ICollection<InputDefinition>? inputs, |
| | 1 | 30 | | ICollection<OutputDefinition>? outputs, |
| | 1 | 31 | | ICollection<string>? outcomes, |
| | 1 | 32 | | IDictionary<string, object>? customProperties, |
| | 1 | 33 | | bool isReadonly, |
| | 1 | 34 | | bool isSystem, |
| | 1 | 35 | | bool isLatest, |
| | 1 | 36 | | bool isPublished, |
| | 1 | 37 | | WorkflowOptions? options, |
| | 1 | 38 | | bool? usableAsActivity, |
| | 1 | 39 | | IActivity? root) |
| | | 40 | | { |
| | 1 | 41 | | Id = id; |
| | 1 | 42 | | DefinitionId = definitionId; |
| | 1 | 43 | | TenantId = tenantId; |
| | 1 | 44 | | Name = name; |
| | 1 | 45 | | Description = description; |
| | 1 | 46 | | CreatedAt = createdAt; |
| | 1 | 47 | | Version = version; |
| | 1 | 48 | | ToolVersion = toolVersion; |
| | 1 | 49 | | Variables = variables; |
| | 1 | 50 | | Inputs = inputs; |
| | 1 | 51 | | Outputs = outputs; |
| | 1 | 52 | | Outcomes = outcomes; |
| | 1 | 53 | | CustomProperties = customProperties; |
| | 1 | 54 | | IsReadonly = isReadonly; |
| | 1 | 55 | | IsSystem = isSystem; |
| | 1 | 56 | | IsLatest = isLatest; |
| | 1 | 57 | | IsPublished = isPublished; |
| | 1 | 58 | | Options = options; |
| | 1 | 59 | | UsableAsActivity = usableAsActivity; |
| | 1 | 60 | | Root = root; |
| | 1 | 61 | | } |
| | | 62 | | |
| | 1237 | 63 | | public string Id { get; set; } = null!; |
| | 1241 | 64 | | public string DefinitionId { get; set; } = null!; |
| | 170 | 65 | | public string? TenantId { get; set; } |
| | 2134 | 66 | | public string? Name { get; set; } |
| | 1069 | 67 | | public string? Description { get; set; } |
| | 2072 | 68 | | public DateTimeOffset CreatedAt { get; set; } |
| | 1179 | 69 | | public int Version { get; set; } |
| | 2076 | 70 | | public Version? ToolVersion { get; set; } |
| | 2076 | 71 | | public ICollection<VariableDefinition>? Variables { get; set; } |
| | 2076 | 72 | | public ICollection<InputDefinition>? Inputs { get; set; } |
| | 2076 | 73 | | public ICollection<OutputDefinition>? Outputs { get; set; } |
| | 2076 | 74 | | public ICollection<string>? Outcomes { get; set; } |
| | 2076 | 75 | | public IDictionary<string, object>? CustomProperties { get; set; } |
| | 1183 | 76 | | public bool IsReadonly { get; set; } |
| | 1179 | 77 | | public bool IsSystem { get; set; } |
| | 1233 | 78 | | public bool IsLatest { get; set; } |
| | 1233 | 79 | | public bool IsPublished { get; set; } |
| | 2080 | 80 | | public WorkflowOptions? Options { get; set; } |
| | | 81 | | |
| | | 82 | | [Obsolete("Use Options.UsableAsActivity instead")] |
| | 116 | 83 | | public bool? UsableAsActivity { get; set; } |
| | | 84 | | |
| | 2130 | 85 | | public IActivity? Root { get; set; } |
| | | 86 | | } |