Merge branch '13939-unqualified-contents-orders'
[arvados.git] / sdk / cwl / tests / wf / runin-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:RunInSingleContainer
38     run:
39       class: Workflow
40       id: mysub
41       inputs:
42         fileblub: File
43       outputs:
44         out:
45           type: string
46           outputSource: sleep1/out
47       steps:
48         sleep1:
49           in:
50             fileblub: fileblub
51           out: [out]
52           run:
53             class: CommandLineTool
54             id: subtool
55             inputs:
56               fileblub:
57                 type: File
58                 inputBinding: {position: 1}
59             outputs:
60               out:
61                 type: string
62                 outputBinding:
63                   outputEval: "out"
64             baseCommand: cat