John, On May 17, 2010, at 11:38 PM, John Mettraux wrote:
> > On Mon, May 17, 2010 at 11:15:20PM -0400, Cappelaere Patrice wrote: >> >> Here is another one. >> On Ruote_Fluo side, you can add a set expression to a sequence >> set :field=>'x',:value=>'3' >> >> But it gets displayed as: set :field=>'x',:value=>'3':'null' >> >> and as_ruby returns: >> set ":field=>'x',:value=>'3'" >> >> as_xml: >> <set ref=":field=>'x',:value=>'3'"/> > > Interesting, > > for this one : > > Ruote.process_definition do > sequence do > alpha > _set :field => 'f', :value => 'v' > bravo > end > end > I must have missed the notice that "set" had been replaced by "_set" Must have been distracted by this: http://ruote.rubyforge.org/exp/set.html Sorry! > I get : > > http://ruote.s3.amazonaws.com/rf_set_field.png > > as XML : > > <?xml version="1.0" encoding="UTF-8"?> > <define> > <sequence> > <alpha/> > <set field="f" value="v"/> > <bravo/> > </sequence> > </define> > > as JSON : > > > ["define",{},[["sequence",{},[["alpha",{},[]],["set",{"field":"f","value":"v"},[]],["bravo",{},[]]]]]] > > > Issue closed. Too bad that we have those underscored keywords... It does not read as well... But I guess that the process definitions are not meant to be read by the user. Pat. -- 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
