On Thu, May 7, 2009 at 11:52 PM, choda <[email protected]> wrote:
>
> And as for the variable not being interpreted, is it also a bug or
> something I understood wrong (when/where to use the "set" keyword for
> variable access and workitem attribute access, is still a bit unclear
> to me) ?

Hello Marc,

sorry for the late reply, was sleeping.

"puts" is pure ruby method, not a ruote expression. It will execute
immediately, sending "toto:${toto}" to your stdout.

The expression used for echoing to the stdout via a process instance is "echo".

---8<---
pdef = OpenWFE.process_definition :name => 'choda1' do
  sequence do
    set :var => 'toto', :value => 'nada'
    echo "toto is ${toto"
  end
end
--->8---

The example you're pointing at is using "print" which is indeed wrong.
I have fixed that :

  
http://github.com/jmettraux/ruote/commit/7167327fc478226d40787cf7ef85296a1a45335d


Thanks a lot. 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