Skip to content

Commit 6679cdb

Browse files
GlassOfWhiskeymr-c
authored andcommitted
Make LoopInput extend OutputSink
1 parent 4f5b885 commit 6679cdb

File tree

4 files changed

+5
-17
lines changed

4 files changed

+5
-17
lines changed

Workflow.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -445,20 +445,8 @@ $graph:
445445
446446
- name: LoopInput
447447
type: record
448-
extends: [Identified, Sink]
448+
extends: [Identified, OutputSink]
449449
fields:
450-
- name: source
451-
doc: |
452-
Specifies one or more of the step output parameters that will
453-
provide input to the loop iterations after the first one (inputs
454-
of the first iteration are the step input parameters).
455-
jsonldPredicate:
456-
"_id": "cwl:source"
457-
"_type": "@id"
458-
refScope: 1
459-
type:
460-
- string?
461-
- string[]?
462450
- name: default
463451
type: ["null", File, Directory, Any]
464452
doc: |
@@ -713,7 +701,7 @@ $graph:
713701
jsonldPredicate:
714702
_id: "cwl:loop"
715703
mapSubject: id
716-
mapPredicate: source
704+
mapPredicate: outputSource
717705
- name: outputMethod
718706
doc: |
719707
Required if `loop` is defined.

tests/loop/default-value-loop.cwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ steps:
1717
when: $(inputs.i1 < 20)
1818
loop:
1919
i1:
20-
source: o1
20+
outputSource: o1
2121
default: 5
2222
outputMethod: all
2323
run:

tests/loop/invalid-multi-source-loop-no-requirement.cwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ steps:
1818
when: $(inputs.i1 < 20)
1919
loop:
2020
i1:
21-
source: [ osmall, obig ]
21+
outputSource: [ osmall, obig ]
2222
pickValue: the_only_non_null
2323
outputMethod: all
2424
run:

tests/loop/multi-source-loop.cwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ steps:
1919
when: $(inputs.i1 < 20)
2020
loop:
2121
i1:
22-
source: [ osmall, obig ]
22+
outputSource: [ osmall, obig ]
2323
pickValue: the_only_non_null
2424
outputMethod: all
2525
run:

0 commit comments

Comments
 (0)