lib/openwfe/expressions/fe_raw.rb in openwferu-0.9.4 vs lib/openwfe/expressions/fe_raw.rb in openwferu-0.9.5

- old
+ new

@@ -105,12 +105,19 @@ template = lookup_variable(exp_name) # # is it a subprocess ? - template = get_participant_map.lookup_participant(exp_name) \ - if (not template) and (not exp_class) + if (not template) and (not exp_class) + + template = get_participant_map.lookup_participant(exp_name) + + unless template + exp_name = OpenWFE::to_underscore(exp_name) + template = get_participant_map.lookup_participant(exp_name) + end + end # # is it a directly a participant ? if template @@ -165,9 +172,10 @@ #pp attributes #pp lookup_attributes(workitem, attributes) get_expression_pool().launch_template( self, + 0, template, workitem, lookup_attributes(workitem)) end