In case somebody comes to this thread looking for the second solution i mentioned: Here is a CommandLineTool i use for changing file names during a workflow.
cwlVersion: v1.0
class: CommandLineTool
baseCommand: mv
label: Changes the name of a file and returns the renamed file as output
requirements:
InlineJavascriptRequirement: {}
inputs:
newname:
type: string
inputBinding:
position: 2
rename_this:
type: File
inputBinding:
position: 1
outputs:
file_renamed:
type: File
outputBinding:
glob: $(inputs.newname)
This is what i came up with using my very limited CWL-experience, so there is probably a more elegant solution.
Will you add the
tar-param.cwlscript anyway so that we can figure out what you are referring to as having the same name? I think if you add it we can help you better. You can rename the output files, but I'm not 100% sure that's what you need in this case without seeing the command line tool.I believe in your outputs, you actually need to specify:
However, I'm also not clear on how you would rename example_out so they don't conflict.