Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
11 changes: 10 additions & 1 deletion conformance_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3541,6 +3541,15 @@
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 ]

- label: stdout_chained_commands
output: {
"out": "a\nb\n"
Expand All @@ -3552,4 +3561,4 @@
`echo a && echo b > out.txt`, but instead will produce the correct `echo a && echo b`,
and capture the output correctly.
tags: [ shell_command, command_line_tool ]

14 changes: 14 additions & 0 deletions tests/output_reference_workflow_input.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cwlVersion: v1.2
class: Workflow

inputs:
first:
type: string
default: me

steps: []

outputs:
last:
type: string
outputSource: first