Help with correlationset construct

View: New views
3 Messages — Rating Filter:   Alert me  

Help with correlationset construct

by BJ :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can someone please explain to me when to use the "pattern" attribute in the correctionset construct? It contains the "request", "response" and "request-response" values, how are they being used?

Thanks.


Re: Help with correlationset construct

by Malkit Singh Bhasin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

BPEL Spec (http://docs.oasis-open.org/wsbpel/2.0/OS/wsbpel-v2.0-OS.html#_Toc164738499) explains it. Copying from the spec below:

In the case of <invoke>, when the operation invoked is a request/response operation, a pattern attribute on the <correlation> specification is used to indicate whether the correlation applies to the outbound message (“request”), the inbound message (“response”), or both (“request-response”). [SA00046] The pattern attribute used in <invoke> is required for request-response operations, and disallowed when a one-way operation is invoked.

Essentially, you can use either of request, response or request-response on you two way invoke activity. Additional attribute initiate=yes/no (join also) is used for initiation o correlation set (for later use) or validation of the message being sent out or the incoming message.

Initiate='yes' is used to indicate that you want to populate (initialize) the defined correlation set from the outbound message, or the incoming message.

Initiate='no' is used for validation purposes only which would validate the correlation pointed value of outgoing (for pattern=request) or the incoming message (pattern=response). For pattern=request-response, both will be validated.

I am not sure what will happen if you configure initiate=yes' for pattern=request-response, seems like error condition to me.

Thanks

Malkit

Rob Lieou wrote:
Can someone please explain to me when to use the "pattern" attribute in the correctionset construct? It contains the "request", "response" and "request-response" values, how are they being used?

Thanks.



Re: Help with correlationset construct

by Ron Ten-Hove :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This tells the BPEL engine which messages to calculate the correlation-set from. "request" means the outbound message, "response" means the inbound message, and "request-response" means both messages are to be used.

--Ron

On Jun 27, 2008, at 16:18 PM, Rob Lieou wrote:

Can someone please explain to me when to use the "pattern" attribute in the correctionset construct? It contains the "request", "response" and "request-response" values, how are they being used?

Thanks.


LightInTheBox - Buy quality products at wholesale price