On Mon, Nov 30, 2009 at 9:17 PM, Gonzalo <[email protected]> wrote: > > class Navigation < OpenWFE::ProcessDefinition > listen :to => "^.*", :once => "true", :upon => "apply" do > participant :ref => 'navigation' > end > end > > (...) > > Having a workflow like this (and the above listener): > > class Test0 < OpenWFE::ProcessDefinition > sequence do > participant :ref => "alpha", :navi => {:param1 => "blabla"} > end > end > > I would like to be able to access alpha's param :navi from the > listener 'navigation'. Is this possible? How could I do it?
Hello again, sorry, but the 'params' category gets overridden at each participant dispatch : http://github.com/jmettraux/ruote/blob/ruote0.9/lib/openwfe/expressions/fe_participant.rb#L138 but you can take inspiration from : http://github.com/jmettraux/ruote/blob/fa9a2133422d42252b1fe119d0741b119c52ae1a/test/functional/eft_19_listen.rb to keep a copy of the params array before a redispatch. Maybe modifying the ParticipantExpression to preserve current params fields is a better idea. Wdyt ? 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
