#!/usr/bin/env cwl-runner cwlVersion: v1.0 class: Workflow # author KNMI EPOS Team label: "epos single download" doc: "EPOS-IT Curl Workflow: downloads data based on curl input." # use epos_imputs.yml for demo inputs: message: string outputs: download: type: File outputSource: "#step1/curl" steps: step0: run: class: CommandLineTool # generate fileout baseCommand: [ 'mktemp' ,'download.epos.XXXXXXXX'] inputs: [] outputs: uuid: type: File outputBinding: glob: 'download.epos.*' in: [] out: [uuid] # fileout step1: run: class: CommandLineTool # download via curl to fileout location baseCommand: [ 'curl' ] inputs: url: type: string inputBinding: position: 1 fileout: type: File stdout: $(inputs.fileout.basename) outputs: curl: type: File outputBinding: glob: $(inputs.fileout.basename) in: url: message fileout: step0/uuid out: [curl]