Update API endpoint to accept workflow tag
This commit is contained in:
parent
265cc2513f
commit
79c73dfc66
|
|
@ -11,6 +11,7 @@ namespace Elsa.Server.Api.Endpoints.WorkflowDefinitions
|
|||
public string? Name { get; init; }
|
||||
public string? DisplayName { get; init; }
|
||||
public string? Description { get; init; }
|
||||
public string? Tag { get; init; }
|
||||
public Variables? Variables { get; init; }
|
||||
public WorkflowContextOptions? ContextOptions { get; init; }
|
||||
public bool IsSingleton { get; init; }
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ namespace Elsa.Server.Api.Endpoints.WorkflowDefinitions
|
|||
workflowDefinition.DeleteCompletedInstances = request.DeleteCompletedInstances;
|
||||
workflowDefinition.ContextOptions = request.ContextOptions;
|
||||
workflowDefinition.DisplayName = request.DisplayName?.Trim();
|
||||
workflowDefinition.Tag = request.Tag?.Trim();
|
||||
|
||||
if (request.Publish)
|
||||
workflowDefinition = await _workflowPublisher.PublishAsync(workflowDefinition, cancellationToken);
|
||||
|
|
|
|||
Loading…
Reference in a new issue