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=&gt;'x',:value=&gt;'3'"/>

Interesting,

for this one :

  Ruote.process_definition do
    sequence do
      alpha
      _set :field => 'f', :value => 'v'
      bravo
    end
  end

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.


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

Reply via email to