OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

wsbpel message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [wsbpel] New Issue: <correlationSet> specifications on <invoke>with @initiate="no" & @pattern="response" should be invalid


IMO, such a cSet serves 2 purposes.  It validates the response coming back from the partner, and it provides documentation.

Danny

Prasad Yendluri wrote:

Description
The pattern attribute on <correlationSet> specifications is defined for use with the <invoke> activity,
to indicate whether the correlation applies to the outbound message (“request”), the inbound message (“response”),
or both (“request-response”). 


However the specific combination of  @pattern="response" and @initiate="no" on an <invoke> should be invalid, as
there is no need to supply a correlation set in a reply to an <invoke> if a new correlation set is not being initiated.
The reply is automatically correlated with the original invoke and if a new correlation set is not being initiated,
 it is meaningless to supply a "different" correlation set in the response to the invoke.

In the Examples below (1) is valid but (2) should be invalid.

(1)
<invoke .....>
	<correlations>
             <correlation set="PurchaseOrder" initiate="yes" 
                          pattern="request"/>
             <correlation set="Invoice" initiate="yes" 
                          pattern="response"/>
        </correlations>
</invoke>
(2)

<invoke .....>
	<correlations>
             <correlation set="PurchaseOrder" initiate="yes" 
                          pattern="request"/>
             <correlation set="Invoice" initiate="no" 
                          pattern="response"/>
        </correlations>
</invoke>
Proposed Resolution:

Clarify that for a <CorreltonSet> specification on <invoke> when the "pattern" attribute has the value "response", the "initiate" attribute can only have the value "yes" .



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]