| | | 1 | | using System.Text.Json.Nodes; |
| | | 2 | | using Elsa.Api.Client.Shared.Models; |
| | | 3 | | using JetBrains.Annotations; |
| | | 4 | | |
| | | 5 | | namespace Elsa.Api.Client.Resources.WorkflowDefinitions.Models; |
| | | 6 | | |
| | | 7 | | /// <summary> |
| | | 8 | | /// Represents a serializable workflow definition. |
| | | 9 | | /// </summary> |
| | | 10 | | [PublicAPI] |
| | | 11 | | public class WorkflowDefinitionModel : LinkedEntity |
| | | 12 | | { |
| | | 13 | | /// <summary> |
| | | 14 | | /// Gets or sets the definition ID of the workflow definition. |
| | | 15 | | /// </summary> |
| | 0 | 16 | | public string DefinitionId { get; set; } = default!; |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// Gets or sets the name of the workflow definition. |
| | | 20 | | /// </summary> |
| | 0 | 21 | | public string? Name { get; set; } |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// Gets or sets the description of the workflow definition. |
| | | 25 | | /// </summary> |
| | 0 | 26 | | public string? Description { get; set; } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// Gets or sets the version of the tool that created the workflow definition. |
| | | 30 | | /// </summary> |
| | 0 | 31 | | public Version? ToolVersion { get; set; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Gets or sets the variables of the workflow definition. |
| | | 35 | | /// </summary> |
| | 0 | 36 | | public ICollection<VariableDefinition>? Variables { get; set; } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// Gets or sets the inputs of the workflow definition. |
| | | 40 | | /// </summary> |
| | 0 | 41 | | public ICollection<InputDefinition>? Inputs { get; set; } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// Gets or sets the outputs of the workflow definition. |
| | | 45 | | /// </summary> |
| | 0 | 46 | | public ICollection<OutputDefinition>? Outputs { get; set; } |
| | | 47 | | |
| | | 48 | | /// <summary> |
| | | 49 | | /// Gets or sets the outcomes of the workflow definition. |
| | | 50 | | /// </summary> |
| | 0 | 51 | | public ICollection<string>? Outcomes { get; set; } |
| | | 52 | | |
| | | 53 | | /// <summary> |
| | | 54 | | /// Gets or sets the custom properties associated with the workflow definition. |
| | | 55 | | /// </summary> |
| | 0 | 56 | | public IDictionary<string, object>? CustomProperties { get; set; } |
| | | 57 | | |
| | | 58 | | /// <summary> |
| | | 59 | | /// Gets or sets whether the workflow definition is read-only. |
| | | 60 | | /// </summary> |
| | 0 | 61 | | public bool IsReadonly { get; set; } |
| | | 62 | | |
| | | 63 | | /// <summary> |
| | | 64 | | /// Gets or sets the <see cref="WorkflowOptions"/> of the workflow definition. |
| | | 65 | | /// </summary> |
| | 0 | 66 | | public WorkflowOptions? Options { get; set; } |
| | | 67 | | |
| | | 68 | | /// <summary> |
| | | 69 | | /// Gets or sets the root activity of the workflow definition. |
| | | 70 | | /// </summary> |
| | 0 | 71 | | public JsonObject? Root { get; set; } |
| | | 72 | | } |