X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/609646134bcd8fc3a7fd500848220741ecc4a9d2..0516059abae641ed8a1e95581d070c71f3e943d3:/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 index daf18b11ca..218b0c5018 100644 --- a/sdk/cwl/tests/wf/scatter2_subwf.cwl +++ b/sdk/cwl/tests/wf/scatter2_subwf.cwl @@ -1,41 +1,93 @@ -cwlVersion: v1.0 -$graph: -- class: Workflow - id: '#main' - inputs: - - type: int - id: '#main/sleeptime' - outputs: - - type: string - outputSource: '#main/sleep1/out' - id: '#main/out' - steps: - - in: - - valueFrom: | - ${ - return String(inputs.sleeptime) + "b"; +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +{ + "$graph": [ + { + "$namespaces": { + "arv": "http://arvados.org/cwl#" + }, + "class": "Workflow", + "cwlVersion": "v1.0", + "hints": [], + "id": "#main", + "inputs": [ + { + "id": "#main/fileblub", + "type": "File" + }, + { + "id": "#main/sleeptime", + "type": "int" } - id: '#main/sleep1/blurb' - - source: '#main/sleeptime' - id: '#main/sleep1/sleeptime' - out: ['#main/sleep1/out'] - run: - class: CommandLineTool - inputs: - - type: int - inputBinding: {position: 1} - id: '#main/sleep1/sleeptime' - outputs: - - type: string - outputBinding: - outputEval: out - id: '#main/sleep1/out' - baseCommand: sleep - id: '#main/sleep1' - requirements: - - {class: InlineJavascriptRequirement} - - {class: ScatterFeatureRequirement} - - {class: StepInputExpressionRequirement} - - {class: SubworkflowFeatureRequirement} - hints: - - class: http://arvados.org/cwl#RunInSingleContainer \ No newline at end of file + ], + "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", + "id": "#main/sleep1/subtool", + "inputs": [ + { + "id": "#main/sleep1/subtool/sleeptime", + "inputBinding": { + "position": 1 + }, + "type": "int" + } + ], + "outputs": [ + { + "id": "#main/sleep1/subtool/out", + "outputBinding": { + "outputEval": "out" + }, + "type": "string" + } + ] + } + } + ] + } + ], + "$namespaces": { + "arv": "http://arvados.org/cwl#" + }, + "cwlVersion": "v1.0" +}