75f50d2d49cc669ca9597acd2f816b4d4e148d43
[arvados.git] / sdk / cwl / tests / wf / runin-reqs-wf4.cwl
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 class: Workflow
6 cwlVersion: v1.0
7 $namespaces:
8   arv: "http://arvados.org/cwl#"
9 inputs:
10   sleeptime:
11     type: int[]
12     default: [1, 2, 3, 4]
13 outputs:
14   out: []
15 requirements:
16   SubworkflowFeatureRequirement: {}
17   ScatterFeatureRequirement: {}
18   InlineJavascriptRequirement: {}
19   StepInputExpressionRequirement: {}
20 steps:
21   substep:
22     in:
23       sleeptime: sleeptime
24     out: []
25     hints:
26       - class: arv:RunInSingleContainer
27     scatter: sleeptime
28     run:
29       class: Workflow
30       id: mysub
31       inputs:
32         sleeptime: int
33       outputs: []
34       steps:
35         sleep1:
36           in:
37             sleeptime: sleeptime
38           out: []
39           run:
40             class: CommandLineTool
41             id: subtool
42             hints:
43               - class: ResourceRequirement
44                 ramMin: 8
45             inputs:
46               sleeptime:
47                 type: int
48                 inputBinding: {position: 1}
49             outputs: []
50             baseCommand: sleep