21718: Update cwltool dependency
[arvados.git] / sdk / cwl / tests / wf / runseparate-wf.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: 5
13   fileblub:
14     type: File
15     default:
16       class: File
17       location: keep:d7514270f356df848477718d58308cc4+94/a
18       secondaryFiles:
19         - class: File
20           location: keep:d7514270f356df848477718d58308cc4+94/b
21 outputs:
22   out:
23     type: string
24     outputSource: substep/out
25 requirements:
26   SubworkflowFeatureRequirement: {}
27   ScatterFeatureRequirement: {}
28   InlineJavascriptRequirement: {}
29   StepInputExpressionRequirement: {}
30 steps:
31   substep:
32     in:
33       sleeptime: sleeptime
34       fileblub: fileblub
35     out: [out]
36     hints:
37       - class: arv:SeparateRunner
38         runnerProcessName: $("sleeptime "+inputs.sleeptime)
39       - class: DockerRequirement
40         dockerPull: arvados/jobs:2.2.2
41     run:
42       class: Workflow
43       id: mysub
44       inputs:
45         fileblub: File
46         sleeptime: int
47       outputs:
48         out:
49           type: string
50           outputSource: sleep1/out
51       steps:
52         sleep1:
53           in:
54             fileblub: fileblub
55           out: [out]
56           run:
57             class: CommandLineTool
58             id: subtool
59             inputs:
60               fileblub:
61                 type: File
62                 inputBinding: {position: 1}
63             outputs:
64               out:
65                 type: string
66                 outputBinding:
67                   outputEval: 'out'
68             baseCommand: cat