import "https://raw.githubusercontent.com/BGI-flexlab/workflow-examples/master/hello.wdl" as hello import "https://raw.githubusercontent.com/BGI-flexlab/workflow-examples/master/sub_workflow.wdl" as sub workflow HelloWorld { #Array[Array[String]] inputSamples = read_tsv("/Users/huangzhibo/GitHub/wdl/test/slide_lane.tsv") Array[Array[String]] inputSamples = [["hello", "world"]] call hello.WriteHello call WriteWorld { input:slide=inputSamples[0] } call sub.sub output { File helloFile = WriteHello.outfile File testFile = WriteWorld.test } } task WriteWorld { Array[String] slide command { echo ${slide[1]} echo "test123" >test } output { File outfile = stdout() File test = "test" } }