I am writting a cwl nested workflow in which in step one there is another workflow named wf1 and step two is a command line. With wf1, a file will be generated that its path must be used for step2. This file is actually one of the files in an array of files which I refer to it with bet_output_Struct. So I must have the second item of this array and by the name of it, form the path and input it to the second step.
To bind the variable to the workflow in the first step, I wrote this code for the second step:
brainvolumecalc: in: path: default: source: wf1/bet_output_Struct valueFrom: $((self.path).toString() + ".nii.gz")
I declared that path must be string, but I have an error which says “path” is not string.
[step brainvolumecalc] Cannot make job: Invalid job input record: the `path` field is not valid because the value is not string
Do you have any idea how should I cast the variable so that I can have path in the string format?
Thank you for your help in advance