6304: Merge branch 'master' into 6304-dns-update-fix
[arvados.git] / sdk / cwl / tests / wf / scatter2.cwl
1 class: Workflow
2 cwlVersion: v1.0
3 $namespaces:
4   arv: "http://arvados.org/cwl#"
5 inputs:
6   sleeptime:
7     type: int[]
8     default: [5]
9 outputs:
10   out:
11     type: string[]
12     outputSource: scatterstep/out
13 requirements:
14   SubworkflowFeatureRequirement: {}
15   ScatterFeatureRequirement: {}
16   InlineJavascriptRequirement: {}
17   StepInputExpressionRequirement: {}
18 steps:
19   scatterstep:
20     in:
21       sleeptime: sleeptime
22     out: [out]
23     scatter: sleeptime
24     hints:
25       - class: arv:RunInSingleContainer
26     run:
27       class: Workflow
28       id: mysub
29       inputs:
30         sleeptime: int
31       outputs:
32         out:
33           type: string
34           outputSource: sleep1/out
35       steps:
36         sleep1:
37           in:
38             sleeptime: sleeptime
39             blurb:
40               valueFrom: |
41                 ${
42                   return String(inputs.sleeptime) + "b";
43                 }
44           out: [out]
45           run:
46             class: CommandLineTool
47             inputs:
48               sleeptime:
49                 type: int
50                 inputBinding: {position: 1}
51             outputs:
52               out:
53                 type: string
54                 outputBinding:
55                   outputEval: "out"
56             baseCommand: sleep