Skip to content

Commit 4bdf55f

Browse files
kinowGlassOfWhiskey
authored andcommitted
Mention that we can refer to workflow level inputs in output parameter outputSource (#178)
1 parent 120c1fa commit 4bdf55f

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

Workflow.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,11 @@ $graph:
225225
fields:
226226
- name: outputSource
227227
doc: |
228-
Specifies one or more workflow parameters that supply the value of to
229-
the output parameter.
228+
Specifies one or more names of an output from a workflow step (in the form
229+
`step_name/output_name` with a `/` separator`), or a workflow input name,
230+
that supply their value(s) to the output parameter.
231+
the output parameter. It is valid to reference workflow level inputs
232+
here.
230233
jsonldPredicate:
231234
"_id": "cwl:outputSource"
232235
"_type": "@id"

conformance_tests.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3541,6 +3541,15 @@
35413541
Use of $(runtime.outdir) for outputBinding glob.
35423542
tags: [ required, command_line_tool ]
35433543

3544+
- label: output_reference_workflow_input
3545+
output: {
3546+
"last": "me"
3547+
}
3548+
tool: tests/output_reference_workflow_input.cwl
3549+
doc: |
3550+
Direct use of Workflow level input fields in the outputs.
3551+
tags: [ required, workflow ]
3552+
35443553
- label: stdout_chained_commands
35453554
output: {
35463555
"out": "a\nb\n"
@@ -3552,4 +3561,4 @@
35523561
`echo a && echo b > out.txt`, but instead will produce the correct `echo a && echo b`,
35533562
and capture the output correctly.
35543563
tags: [ shell_command, command_line_tool ]
3555-
3564+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
cwlVersion: v1.2
2+
class: Workflow
3+
4+
inputs:
5+
first:
6+
type: string
7+
default: me
8+
9+
steps: []
10+
11+
outputs:
12+
last:
13+
type: string
14+
outputSource: first

0 commit comments

Comments
 (0)