lib/openwfe/expressions/environment.rb in openwferu-0.9.15 vs lib/openwfe/expressions/environment.rb in openwferu-0.9.16

- old
+ new

@@ -156,11 +156,13 @@ # as variables and need to be rescheduled upon engine restart. # def reschedule (scheduler) @variables.each do |key, value| - ldebug { "reschedule() - item of class #{value.class}" } + + #ldebug { "reschedule() - item of class #{value.class}" } + next unless value.kind_of? Schedulable value.application_context = @application_context value.reschedule(scheduler) end @@ -170,11 +172,14 @@ # # Returns the top environment for the process instance (the # environment just before the engine environment). # def get_root_environment + #ldebug { "get_root_environment\n#{self}" } - return self if not @parent_id + + return self unless @parent_id + get_parent.get_root_environment end #def get_subprocess_environment # return self if not @parent_id