Merge branch '21030-update-perm-cte' refs #21030
[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       - class: DockerRequirement
39         dockerPull: arvados/jobs:2.2.2
40     run:
41       class: Workflow
42       id: mysub
43       inputs:
44         fileblub: File
45       outputs:
46         out:
47           type: string
48           outputSource: sleep1/out
49       steps:
50         sleep1:
51           in:
52             fileblub: fileblub
53           out: [out]
54           run:
55             class: CommandLineTool
56             id: subtool
57             inputs:
58               fileblub:
59                 type: File
60                 inputBinding: {position: 1}
61             outputs:
62               out:
63                 type: string
64                 outputBinding:
65                   outputEval: $("out")
66             baseCommand: cat