Merge branch '13399-lock-starvation'
[arvados.git] / sdk / cwl / tests / wf / scatter2_subwf.cwl
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 {
6   "$graph": [
7     {
8       "class": "Workflow",
9       "cwlVersion": "v1.0",
10       "hints": [],
11       "id": "#main",
12       "inputs": [
13         {
14           "id": "#main/fileblub",
15           "type": "File"
16         },
17         {
18           "id": "#main/sleeptime",
19           "type": "int"
20         }
21       ],
22       "outputs": [
23         {
24           "id": "#main/out",
25           "outputSource": "#main/sleep1/out",
26           "type": "string"
27         }
28       ],
29       "requirements": [
30         {
31           "class": "InlineJavascriptRequirement"
32         },
33         {
34           "class": "ScatterFeatureRequirement"
35         },
36         {
37           "class": "StepInputExpressionRequirement"
38         },
39         {
40           "class": "SubworkflowFeatureRequirement"
41         }
42       ],
43       "steps": [
44         {
45           "id": "#main/sleep1",
46           "in": [
47             {
48               "id": "#main/sleep1/blurb",
49               "valueFrom": "${\n  return String(inputs.sleeptime) + \"b\";\n}\n"
50             },
51             {
52               "id": "#main/sleep1/sleeptime",
53               "source": "#main/sleeptime"
54             }
55           ],
56           "out": [
57             "#main/sleep1/out"
58           ],
59           "run": {
60             "baseCommand": "sleep",
61             "class": "CommandLineTool",
62             "id": "#main/sleep1/subtool",
63             "inputs": [
64               {
65                 "id": "#main/sleep1/subtool/sleeptime",
66                 "inputBinding": {
67                   "position": 1
68                 },
69                 "type": "int"
70               }
71             ],
72             "outputs": [
73               {
74                 "id": "#main/sleep1/subtool/out",
75                 "outputBinding": {
76                   "outputEval": "out"
77                 },
78                 "type": "string"
79               }
80             ]
81           }
82         }
83       ]
84     }
85   ],
86   "cwlVersion": "v1.0"
87 }