On Sat, Oct 17, 2009 at 6:19 AM, David <[email protected]> wrote:
>
> Hi, is there some way for a participant instance to get called back as
> a side-effect of someone calling engine.reply(workitem) where
> workitem's fei refers to that participant?
Hello David,
you could have a look at the 'listen' expression [1], it lets a
process definition listen for "traffic" given a participant name.
Else, the "natural" way to do that is simply :
---8<---
sequence do
participant "alfred"
participant "david"
end
--->8---
When the reply comes back for alfred, the participant david is then triggered.
> I see that HashParticipant is coded with a reply(workitem) method, but
> it doesn't seem to be called when I reply to the engine on its behalf.
Indeed, this method is meant for 'worklist' code to call to indicate
that the work is over, maybe you can suggest a better explanation for
the rdoc at [2].
[1] http://ruote.rubyforge.org/exp/listen.html
[2]
http://github.com/jmettraux/ruote/blob/ruote2.0/lib/ruote/part/hash_participant.rb#L64-70
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
-~----------~----~----~----~------~----~------~--~---