Oops, clicked on "send" too soon. Continuing here anyway....

I have noticed something : whenever you have a participant that sends
something you name it like "something_sender", and if it's supposed to
receive, it's named "something_else_receiver". Somehow, we can forget
the :behaviour attribute, it's not necessary.

It seems you have ActiveMQPublisherParticipant and
ActiveMQSubscriberParticipant, these two classes of participants are
aligned on send / receive, the behaviour is not given in the process
definition but at participant registration. In the process definition,
you choose the right participant, and that's it.

Your receiver participant implementation can play the role of a
'listen' expression, it gets activated by receiving a workitem, and
somehow replies only when there is an incoming message that "matches"
the workitem. (I think that such a participant has to handle multiple
workitems, and couldbe capable of matching workitems with previous(ly
stored) messages).

The "activating" workitem has the 'flow expression id' you're looking
for, you simply have to replace the payload of the workitem with the
one coming for the "active message". (you may think of the flow
expression id of the workitem as its "header", don't touch it).

(see http://jmettraux.wordpress.com/2007/09/24/reply-there/ )



Don't hesitate to simplify :

    participant :escalation_sender,  :msg  => "The duedate will be in
two days..."
to
    escalation_sender :msg => "The duedate will be in two days..."

and

    subprocess :ref =>"supplierCommunication", :DunsNr =>
"${f:dunsnr}", :processData => "${f:TenderDataList.${f:dunsnr}}"
to
    supplierCommunication", :DunsNr => "${f:dunsnr}", :processData =>
"${f:TenderDataList.${f:dunsnr}}"


It makes for more concise process definitions.


What do you think ?

Cheers,

-- 
John Mettraux   -///-   http://jmettraux.openwfe.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru dev" 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-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to