10081: Fix quoting issue with workflow & input object documents. Improve test
[arvados.git] / sdk / cwl / tests / wf / scatter2_subwf.cwl
diff --git a/sdk/cwl/tests/wf/scatter2_subwf.cwl b/sdk/cwl/tests/wf/scatter2_subwf.cwl
new file mode 100644 (file)
index 0000000..0ae1cf0
--- /dev/null
@@ -0,0 +1,33 @@
+$graph:
+- class: Workflow
+  hints:
+  - {class: 'http://arvados.org/cwl#RunInSingleContainer'}
+  id: '#main'
+  inputs:
+  - {id: '#main/sleeptime', type: int}
+  outputs:
+  - {id: '#main/out', outputSource: '#main/sleep1/out', type: string}
+  requirements:
+  - {class: InlineJavascriptRequirement}
+  - {class: ScatterFeatureRequirement}
+  - {class: StepInputExpressionRequirement}
+  - {class: SubworkflowFeatureRequirement}
+  steps:
+  - id: '#main/sleep1'
+    in:
+    - {id: '#main/sleep1/blurb', valueFrom: "${\n  return String(inputs.sleeptime)\
+        \ + \"b\";\n}\n"}
+    - {id: '#main/sleep1/sleeptime', source: '#main/sleeptime'}
+    out: ['#main/sleep1/out']
+    run:
+      baseCommand: sleep
+      class: CommandLineTool
+      inputs:
+      - id: '#main/sleep1/sleeptime'
+        inputBinding: {position: 1}
+        type: int
+      outputs:
+      - id: '#main/sleep1/out'
+        outputBinding: {outputEval: out}
+        type: string
+cwlVersion: v1.0
\ No newline at end of file