lib/openwfe/expressions/fe_subprocess.rb in openwferu-0.9.2 vs lib/openwfe/expressions/fe_subprocess.rb in openwferu-0.9.3
- old
+ new
@@ -76,10 +76,12 @@
raise "'subprocess' expression misses a 'ref', 'field-ref' or 'variable-ref' attribute" if not ref
template_fei = lookup_variable(ref)
+ #template_fei = lookup_participant(ref) if not template_fei
+
raise "did not find any subprocess named '#{ref}'" \
if not template_fei
forget = lookup_boolean_attribute(:forget, workitem)
@@ -94,9 +96,17 @@
.launch_template(requester, template_fei, workitem, params)
end
#def reply (workitem)
#end
+
+ #protected
+ # def lookup_participant (ref)
+ # participant = get_participant_map.lookup_participant(ref)
+ # return nil unless participant
+ # #
+ # # builds a participant expression on the fly
+ # end
end
end