John,

Attached is a testcase to illustrate what I am trying to do in a simpler
form.

SpotParticipant creates a workitem and stores it. It sends 200 SOAP messages
out and waits for answers (not implemented in example).
Messages are targeted back to that activity.
MessageS are eventually received and handled by the application.  Associated
Workitems are retrieved.  I emulate the handling of one workitem here.

Now, I would like to send workitem back to the activity of that participant
for processing {I will eventually get 200 of those)

If I use @engine.proceed( wi ), the engine releases my participant and goes
to next activity.  My Participant "consume" method is never called.  So
that's not the expected behavior.

I am not sure that having 2 participants would be more elegant.  It seems to
me that targeting a workitem to a specific activity of a participant is
something fairly generic.

The best thing I can come up with would be to call:

@engine.get_participant_map.dispatch( nil, "SPOT", wi.as_owfe_workitem )

[I would need to fudge the activity parameter...but that's fairly easy...].

I can implement that but wanted to get your feedback on the approach.
Thanks for your great support.
V/R,
Pat.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Attachment: pat_test.rb
Description: Binary data

Reply via email to