From ad4ea6d057ebd4067b7a0fbb90dfb8f0ec5a92c3 Mon Sep 17 00:00:00 2001 From: "Bruno P. Kinoshita" Date: Tue, 17 May 2022 22:43:19 +1200 Subject: [PATCH] Mention that we can refer to workflow level inputs in output parameter outputSource --- Workflow.yml | 7 +++++-- conformance_tests.yaml | 8 ++++++++ tests/output_reference_workflow_input.cwl | 14 ++++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 tests/output_reference_workflow_input.cwl diff --git a/Workflow.yml b/Workflow.yml index 8f0e23dc..884177df 100644 --- a/Workflow.yml +++ b/Workflow.yml @@ -225,8 +225,11 @@ $graph: fields: - name: outputSource doc: | - Specifies one or more workflow parameters that supply the value of to - the output parameter. + Specifies one or more names of an output from a workflow step (in the form + `step_name/output_name` with a `/` separator`), or a workflow input name, + that supply their value(s) to the output parameter. + the output parameter. It is valid to reference workflow level inputs + here. jsonldPredicate: "_id": "cwl:outputSource" "_type": "@id" diff --git a/conformance_tests.yaml b/conformance_tests.yaml index 57857c15..35063b54 100644 --- a/conformance_tests.yaml +++ b/conformance_tests.yaml @@ -3540,3 +3540,11 @@ doc: | Use of $(runtime.outdir) for outputBinding glob. tags: [ required, command_line_tool ] +- label: output_reference_workflow_input + output: { + "last": "me" + } + tool: tests/output_reference_workflow_input.cwl + doc: | + Direct use of Workflow level input fields in the outputs. + tags: [ required, workflow ] diff --git a/tests/output_reference_workflow_input.cwl b/tests/output_reference_workflow_input.cwl new file mode 100644 index 00000000..808132aa --- /dev/null +++ b/tests/output_reference_workflow_input.cwl @@ -0,0 +1,14 @@ +cwlVersion: v1.2 +class: Workflow + +inputs: + first: + type: string + default: me + +steps: [] + +outputs: + last: + type: string + outputSource: first