view env/lib/python3.9/site-packages/cwltool/tests/wf/scatter2_subwf.cwl @ 0:4f3585e2f14b draft default tip

"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author shellac
date Mon, 22 Mar 2021 18:12:50 +0000
parents
children
line wrap: on
line source

#!/usr/bin/env cwl-runner
# 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",
      "id": "#main",
      "inputs": [
        {
          "id": "#main/fileblub",
          "type": "File"
        },
        {
          "id": "#main/sleeptime",
          "type": "int"
        }
      ],
      "outputs": [
        {
          "id": "#main/out",
          "outputSource": "#main/sleep1/out",
          "type": "string"
        }
      ],
      "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"
              }
            ]
          }
        }
      ]
    }
  ],
  "cwlVersion": "v1.0"
}