Skip to content

Commit cc46bc6

Browse files
authored
feat: add in support for workflow engine and version when submitting a request. Closes #181 (#182)
* Add in support for workflow enginer and version when submitting a request. * Expand out Workflow Engine version to by array of strings. * Update RunRequest.yaml * Add in workflow_engine and version to the run spec. * Fix typo * Fix for consitency * Add more clarity about engine and version * Update description * Address changes requested. * Fix indentation. * Resolve reorganization of yaml's into 1 single yaml. * Remove preempted with accidental merge. * Add required parameter for: - workflow_type - workflow_type_version - workflow_url
1 parent de618a8 commit cc46bc6

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

openapi/workflow_execution_service.openapi.yaml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ tags:
9191
x-displayName: WorkflowTypeVersion
9292
description: |
9393
<SchemaDefinition schemaRef="#/components/schemas/WorkflowTypeVersion" />
94+
- name: workflowengineversion_model
95+
x-displayName: WorkflowEngineVersion
96+
description: |
97+
<SchemaDefinition schemaRef="#/components/schemas/WorkflowEngineVersion" />
9498
x-tagGroups:
9599
- name: Overview
96100
tags:
@@ -112,6 +116,7 @@ x-tagGroups:
112116
- log_model
113117
- defaultworkflowengineparameter_model
114118
- workflowtypeversion_model
119+
- workflowengineversion_model
115120
paths:
116121
/service-info:
117122
get:
@@ -227,6 +232,10 @@ paths:
227232
228233
The `workflow_type_version` is the version of the workflow language submitted and must be one supported by this WES instance.
229234
235+
The `workflow_engine` is the engine that supports the workflow_type and must be supported by this WES instance.
236+
237+
The `workflow_engine_version` is the version of workflow engine and must be supported by this WES instance.
238+
230239
See the `RunRequest` documentation for details about other fields.
231240
operationId: RunWorkflow
232241
parameters: [ ]
@@ -245,6 +254,10 @@ paths:
245254
type: string
246255
tags:
247256
type: string
257+
workflow_engine:
258+
type: string
259+
workflow_engine_version:
260+
type: string
248261
workflow_engine_parameters:
249262
type: string
250263
workflow_url:
@@ -458,7 +471,7 @@ components:
458471
workflow_engine_versions:
459472
type: object
460473
additionalProperties:
461-
type: string
474+
$ref: '#/components/schemas/WorkflowEngineVersion'
462475
default_workflow_engine_parameters:
463476
type: array
464477
items:
@@ -551,6 +564,10 @@ components:
551564
RunRequest:
552565
title: RunRequest
553566
type: object
567+
required:
568+
- workflow_type
569+
- workflow_type_version
570+
- workflow_url
554571
properties:
555572
workflow_params:
556573
type: object
@@ -578,6 +595,16 @@ components:
578595
type: object
579596
additionalProperties:
580597
type: string
598+
workflow_engine:
599+
type: string
600+
description: >-
601+
The workflow engine, must be one supported by this WES instance. Required if workflow_engine_version is provided.
602+
workflow_engine_version:
603+
type: string
604+
description: >-
605+
The workflow engine version, must be one supported by this WES instance.
606+
If workflow_engine is provided, but workflow_engine_version is not, servers can make no assumptions with regard to the engine version the WES instance uses to process the request if
607+
that WES instance supports multiple versions of the requested engine.
581608
workflow_url:
582609
type: string
583610
description: >-
@@ -588,6 +615,10 @@ components:
588615
To execute a workflow, send a run request including all the details needed to begin downloading
589616
590617
and executing a given workflow.
618+
619+
If workflow_engine and workflow_engine_version are not provided, servers can use the most recent workflow_engine_version of workflow_engine that WES instance uses to process the request if
620+
621+
supports for the requested workflow_type.
591622
RunLog:
592623
title: RunLog
593624
type: object
@@ -662,6 +693,16 @@ components:
662693
type: string
663694
description: an array of one or more acceptable types for the `workflow_type`
664695
description: Available workflow types supported by a given instance of the service.
696+
WorkflowEngineVersion:
697+
title: WorkflowEngineVersion
698+
type: object
699+
properties:
700+
workflow_engine_version:
701+
type: array
702+
items:
703+
type: string
704+
description: An array of one or more acceptable engines versions for the `workflow_engine`
705+
description: Available workflow engine versions supported by a given instance of the service.
665706
RunListResponse:
666707
title: RunListResponse
667708
type: object

0 commit comments

Comments
 (0)