On Mon, Feb 28, 2011 at 04:04:01PM -0800, toba wrote: > > Error message : > #<NoMethodError: undefined method `locate_var' for nil:NilClass> > > (...) > > It seems that unset_variable method want to unset the tag "split case" > but in ro_variables.rb:195:in `locate_var' h.parent_id exists but > parent doesn't
Hello Guilhem, I packaged your process definition as https://gist.github.com/848369 ---8<--- require 'rubygems' require 'ruote' engine = Ruote::Engine.new(Ruote::Worker.new(Ruote::HashStorage.new)) pdef = Ruote.process_definition "dcm" do sequence do #anyone :task => "Define the case" concurrence :count => 1 do concurrence :tag => 'main' do repeat :tag => 'undo' do anyone :task => "add one task" add_branches "one more task", :ref => "split_case" end sequence do concurrent_iterator :over_if => '${f:case_completed} == true', :on => "first task", :tag => "split_case" do anyone :task => "${v:i}" end undo :ref => 'undo' end end sequence do anyone :task => "close the case" end end end end engine.register_participant 'anyone', Ruote::StorageParticipant engine.noisy = true wfid = engine.launch(pdef) sleep 2 wi = engine.storage_participant.find do |wi| wi.fei.expid == '0_0_0_1_0' end p :reply engine.storage_participant.reply(wi) sleep 3 --->8--- I could confirm the issue on ruote 2.1.11. It is fixed on 'master' (ruote 2.2.0). I am trying to release ruote 2.2.0 today, you could wait for it or use 'master'. I've noticed another thing (on 2.2.0), proceeding the "close the case" workitem should terminate the process but it seems it does not. I will take a closer look at that. Best regards, -- John Mettraux - http://jmettraux.wordpress.com -- 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
