| 1 |
#!/usr/bin/env cwl-runner |
| 2 |
class: Workflow |
| 3 |
cwlVersion: v1.1 |
| 4 |
requirements: |
| 5 |
- class: StepInputExpressionRequirement |
| 6 |
- class: InlineJavascriptRequirement |
| 7 |
|
| 8 |
inputs: |
| 9 |
a: int |
| 10 |
b: int |
| 11 |
|
| 12 |
outputs: |
| 13 |
val: |
| 14 |
type: string |
| 15 |
outputSource: step1/echo_out |
| 16 |
|
| 17 |
steps: |
| 18 |
step1: |
| 19 |
run: |
| 20 |
id: echo |
| 21 |
class: CommandLineTool |
| 22 |
inputs: |
| 23 |
c: |
| 24 |
type: int |
| 25 |
inputBinding: {} |
| 26 |
outputs: |
| 27 |
echo_out: |
| 28 |
type: string |
| 29 |
outputBinding: |
| 30 |
glob: "step1_out" |
| 31 |
loadContents: true |
| 32 |
outputEval: $(self[0].contents) |
| 33 |
baseCommand: "echo" |
| 34 |
stdout: step1_out |
| 35 |
|
| 36 |
in: |
| 37 |
a: a |
| 38 |
b: b |
| 39 |
c: |
| 40 |
valueFrom: "$(inputs.a + inputs.b)" |
| 41 |
out: [echo_out] |