ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Monsieur <geert.monsi...@gmail.com>
Subject how can I use BPEL correlation mechanism?
Date Thu, 05 Aug 2010 11:47:01 GMT

I'm deploying a simple BPEL process consisting of one flow which holds two
receive activities (createInstance=yes). I defined a property to correlate
message in the BPEL's WSDL file:

<vprop:property name="testprop" type="xsd:long"/>
     <vprop:propertyAlias messageType="tns:operation1message" part="s"
     <vprop:propertyAlias messageType="tns:operation2message" part="s"

In the BPEL process I've added a correlation set.

        <bpel:correlationSet name="CorrelationSet"

This correlation set is used together with the two receive activities.
initiate=join because I want the process instance to be continued (=ended)
when two correlated messages are received by the BPEL engine.

<bpel:receive name="Receive1" partnerLink="client" operation="operation1"
portType="tns:geertishetmoe" variable="Variable1" createInstance="yes"
                    <bpel:correlation set="CorrelationSet"

<bpel:receive name="Receive2" partnerLink="client" operation="operation2"
portType="tns:geertishetmoe" variable="Variable2" createInstance="yes"
                    <bpel:correlation set="CorrelationSet"

When using operation 1 and operation 2 in one unique session, correlation is
working properly (probably because of the fact that ODE's implicit
correlation mechanism relies on the session id?). However, when using
operation 1 and operation 2 in two different sessions, ODE never manages to
correlate two messages containing the same id.

Does this mean I'm not able to use the BPEL correlation mechanism? Or what
else can be wrong?

Thanks in advance!

In attachment you can find both my BPEL and corresponding WSDL file.


Geert Monsieur

View raw message