This section of the forum is now closed; we are working on a new support model for WDL that we will share here shortly. For Cromwell-specific issues, see the Cromwell docs and post questions on Github.
What is the best way to specify a file output, when the file name is not known ahead of the run
I am writing a task (and workflow) that takes as input a uuid and retrieves from a repository the file associated with the uuid. While I could determine ahead of time the name of the file, I'd rather not. Instead, I want the task to retrieve the file, and then I want to specify that file as an output. I'm experimenting with the use of the glob function to get an array of files, and then indexing into the resulting File Array (don't know yet whether this will work). Regardless, is there a better way to do this?