We have a simple example workflow (foo_wf.cwl) that takes an optional string array as input. It calls foo.cwl which sets a default for the input array. This workflow works when given the string array as input, but when given no inputs it throws the following error in errfile.txt:
com.ibm.spectrumcomputing.cwl.model.process.parameter.type.NullValue cannot be cast to java.util.List
This only happens at the workflow level with the optional array input. I believe since it is optional for the workflow, it should return null as input to the step calling foo.cwl where it then uses the default array for the command line tool input because the input is null. This is the behavior for a non-array optional input.
Hi,
We have a simple example workflow (
foo_wf.cwl
) that takes an optionalstring
array as input. It callsfoo.cwl
which sets a default for the input array. This workflow works when given the string array as input, but when given no inputs it throws the following error inerrfile.txt
:com.ibm.spectrumcomputing.cwl.model.process.parameter.type.NullValue cannot be cast to java.util.List
This only happens at the workflow level with the optional array input. I believe since it is optional for the workflow, it should return
null
as input to the step callingfoo.cwl
where it then uses the default array for the command line tool input because the input is null. This is the behavior for a non-array optional input.OptionalArrayInputError.tar.gz