On Thu, Nov 18, 2010 at 09:21:08AM +0100, Gonzalo Suárez wrote:
>
> Thanks for the help. I already solved my needs using the ProcessStatus
> class as Rebo said in #ruote. But I would like to know how to use your
> solution. With block participants I know how to use it since the block
> may take the flow expression and the workitem. But, as far as I know,
> within an "stateless" participant the consume method only takes the
> workitem as parameter and I can't figure out how to get the flow
> expression in order to call the lookup_variable().
Hi Gonzalo,
you can simply do
---8<---
class GonzaloParticipant
include Ruote::LocalParticipant
def consume(workitem)
p fexp.lookup_variable("age_of_the_captain")
reply_to_engine(workitem)
end
end
--->8---
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