Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
8 changes: 8 additions & 0 deletions conformance_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1801,6 +1801,14 @@
doc: Test workflow scatter with single scatter parameter and two valueFrom using $inputs (first and current el)
tags: [ scatter, step_input, workflow ]

- job: tests/bwa-mem-job.json
output:
out1: [ "foo 1", "foo 2", "foo 3", "foo 4"]
tool: tests/scatter-valuefrom-default.cwl
id: wf_scatter_valuefrom_default
doc: Test workflow scatter with single scatter parameter, a valueFrom in the WorkflowStep and a default value inside the step
tags: [ scatter, step_input, workflow ]

- job: tests/import_schema-def_job.yml
output:
output_bam:
Expand Down
39 changes: 39 additions & 0 deletions tests/scatter-valuefrom-default.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
class: Workflow
cwlVersion: v1.3.0-dev1

requirements:
StepInputExpressionRequirement: {}
SubworkflowFeatureRequirement: {}
ScatterFeatureRequirement: {}
InlineJavascriptRequirement: {}

inputs:
min_std_max_min: int[]

outputs:
out1:
type: string[]
outputSource: step1/out1

steps:
step1:
run:
class: Workflow
inputs:
value: int
outputs:
out1:
type: string
outputSource: step2/out1
steps:
step2:
run: conditionals/cond-wf-003_nojs.cwl
in:
val: value
test:
valueFrom: "$(true)"
out: [ out1 ]
scatter: value
in:
value: min_std_max_min
out: [out1]