Well, that isn't quite the same thing, is it?  For example, in order
to force a HashParticipant to relinquish its reference to a workitem,
I would have to hold a reference to the participant itself and invoke
its 'reply' method.  I guess that's what you're suggesting ;-),
although I would have preferred to reply directly to the engine and
have the participant figure out which workitem to release.

As far as using the simple sequence of participant1 followed by
participant2, yes, of course, that simulates the same thing but forces
me to double the number of participants.  Or, so it would seem to me.
The same thing would be true at having to create a 'listen' for each
case--it would inflate the size of my process definition.

That said, though, I could certainly follow the subscription logic of
your 'listen' expression, and, because your code is pretty simple
throughout I might be able to figure out a scheme in which a
participant can receive a callback upon its own 'reply.'

-- David

On Oct 17, 5:58 am, John Mettraux <[email protected]> wrote:
> 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_p...
>
> 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