yuch7 / cwlexec

A new open source tool to run CWL workflows on LSF
Other
36 stars 8 forks source link

Optional array workflow input does not use tool's default value #19

Closed biokcb closed 6 years ago

biokcb commented 6 years ago

Hi,

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.

OptionalArrayInputError.tar.gz

skeeey commented 6 years ago

This is bug, it fails to case a CWL NULL value to list see 9b15b52