1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: Apache-2.0
6 # This is a two-step workflow which uses "revtool" and "sorttool" defined above.
9 doc: "Reverse the lines in a document, then sort those lines."
13 # The inputs array defines the structure of the input object that describes
14 # the inputs to the workflow.
16 # The "reverse_sort" input parameter demonstrates the "default" field. If the
17 # field "reverse_sort" is not provided in the input object, the default value will
22 doc: "The input file to be processed."
26 doc: "If true, reverse (decending) sort"
28 # The "outputs" array defines the structure of the output object that describes
29 # the outputs of the workflow.
31 # Each output field must be connected to the output of one of the workflow
32 # steps using the "connect" field. Here, the parameter "#output" of the
33 # workflow comes from the "#sorted" output of the "sort" step.
37 outputSource: sorted/output
38 doc: "The output with the lines reversed and sorted."
40 # The "steps" array lists the executable steps that make up the workflow.
41 # The tool to execute each step is listed in the "run" field.
43 # In the first step, the "inputs" field of the step connects the upstream
44 # parameter "#input" of the workflow to the input parameter of the tool
47 # In the second step, the "inputs" field of the step connects the output
48 # parameter "#reversed" from the first step to the input parameter of the
49 # tool "sorttool.cwl#input".