diff --git a/lib/ep3/init/cwl2wfnet.rb b/lib/ep3/init/cwl2wfnet.rb index 3739267..8b25b57 100755 --- a/lib/ep3/init/cwl2wfnet.rb +++ b/lib/ep3/init/cwl2wfnet.rb @@ -457,6 +457,8 @@ def wfnet(cwl) if hash[:index].nil? if hash[:nextParam].nil? nil + elsif hash[:prevParam].nil? + %Q!#{hash[:nextParam]}: #{JSON.dump(hash[:default].to_h)}! elsif hash[:default].instance_of?(InvalidValue) %Q!#{hash[:nextParam]}: .[#{idx}].#{hash[:prevParam]}! else