2012/4/20 John Mettraux <[email protected]>: > > On Fri, Apr 20, 2012 at 01:11:39AM -0700, Claudio wrote: >> >> With my team, I am using the wonderful Ruote engine (recently upgraded >> to 2.3.0) in a production environment, with an average of 20 new >> processes created every day. >> >> I recently fixed a bug in a workflow that caused some workitems to >> move into an error condition. >> >> I had the following information about the error: >> message: >> #<NoMethodError: undefined method `size' for nil:NilClass> >> trace: >> /home/rails/apps/arts/shared/bundle/ruby/1.8/gems/ruote-2.2.0/lib/ >> ruote/exp/fe_concurrence.rb:286:in `merge_all_workitems' >> .../ruby/1.8/gems/ruote-2.2.0/lib/ruote/exp/fe_concurrence.rb:258:in >> `reply_to_parent' >> .../ruby/1.8/gems/ruote-2.2.0/lib/ruote/exp/flowexpression.rb:228:in >> `do_apply' >> .../ruby/1.8/gems/ruote-2.2.0/lib/ruote/worker.rb:326:in `launch' >> >> The mistake was the use of a :unless clause in a :concurrence >> expression, as highlighted by the following unit test: >> https://gist.github.com/beaefdcc70a718c42ed5 >> >> Nesting the :concurrence expression into a :sequence expression and >> moving the :unless clause up into the :sequence resolved the problem >> (but there were other ways, such as an :if expression). >> Probably the issue is documented, but I could not find it. > > excellent! I will dig into this issue report. Thanks a lot!
Hello, I think I fixed the issue yesterday while working on different symptoms: https://github.com/jmettraux/ruote/commit/14e8a835a4ae39b9897641662bb2d1b701c6efad I updated your gist and it seems to confirm it: https://gist.github.com/e229de6db40823053797 Please tell me if it's not fixed. Thanks a ton! John -- you received this message because you are subscribed to the "ruote users" group. to post : send email to [email protected] to unsubscribe : send email to [email protected] more options : http://groups.google.com/group/openwferu-users?hl=en
