yuch7 / cwlexec

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

Unable to evaluate record types in InitialWorkDirRequirement #13

Closed biokcb closed 6 years ago

biokcb commented 6 years ago

Hi,

We have a simple command line tool (attached) that takes a record type as input with two strings, one for a file name and one for a directory name. Using InitialWorkDirRequirement should set up the directory for use by the command, but it fails to evaluate the record in this context.

At line 202 in attached outfile.txt: 09:23:29.529 default [main] DEBUG c.i.s.c.e.util.evaluator.JSEvaluator - Evaluated js expression "$(inputs.parameters.out_dir)" to A null object

However, it is able to parse the record properly for creating the base command, just not for the above step. InitialWorkDirError.tar.gz

skeeey commented 6 years ago

This problem because we didn't handle the record type, when we evaluate an JS expression that is from the record type input, fixed at 9df20fa