Creating an Initial Correlation Set

Invoking an Asynchronous Web Service from a BPEL Process 8-23

3. Click the Add icon to display the correlation set dropdown list.

4. Select CorrelationSet1.

5. Click the Initiate column to display a dropdown list, and select yes. When set to

yes , the set is initiated with the values of the properties occurring in the message being exchanged.

6. Click OK.

8.5.1.5.2 Associating the Second Correlation Set with a Receive Activity

To associate the second correlation set with a receive activity: 1. Double-click the receiveSecond receive activity to display the Receive dialog. 2. Click the Correlations tab. 3. Click the Add icon to display the correlation set dropdown list. 4. Select CorrelationSet2, then click OK. 5. Click the Initiate column to display a dropdown list, and select yes. 6. Click Add again and select CorrelationSet1. 7. Click OK. 8. Click the Initiate column to display a dropdown list, and select no for CorrelationSet1 .

9. Click OK.

This groups the first and second receive activities into a correlated group.

8.5.1.5.3 Associating the Third Correlation Set with a Receive Activity

To associate the third correlation set with a receive activity: 1. Double-click the receiveThird receive activity to display the Receive dialog. 2. Click the Correlations tab. 3. Click the Add icon. 4. Select CorrelationSet2. 5. Set the Initiate column to no for CorrelationSet2. 6. Click OK. This groups the second and third receive activities into a second correlated group.

8.5.1.6 Step 6: Creating Property Aliases

Property aliases enable you to map a global property to a field in a specific message part. This action enables the property name to become an alias for the message part and location. The alias can be used in XPath expressions.

8.5.1.6.1 Creating Property Aliases for NameCorr You create the following two property

aliases for the NameCorr correlation set: ■ Map NameCorr to the LoanAppl message type part of the receiveFirst receive activity. This receive activity is associated with the FirstReceive partner link defined by the FirstReceive.wsdl file. 8-24 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite ■ Map NameCorr to the incoming LoanAppResponse message type part of the receiveSecond receive activity. This receive activity is associated with the SecondReceive partner link defined by the SecondFileRead.wsdl file. To create property aliases for NameCorr: 1. In the Structure window of Oracle JDeveloper, right-click Property Aliases. 2. Select Create Property Alias. 3. From the Property list, select NameCorr. 4. Expand and select Message Types Partner Link FirstReceive FirstReceive.wsdl Message Types LoanAppl_msg Part - LoanAppl. 5. In the Query field, press Ctrl+Space to define the following XPath expression: ns2:LoanApplns2:Name

6. Click OK.

7. Repeat Step 1 through Step 3 to create a second property alias for NameCorr.

8. Expand and select Message Types Project WSDL Files SecondFileRead.wsdl

Message Types LoanAppResponse_msg Part - LoanAppResponse. 9. In the Query field, press Ctrl+Space to define the following XPath expression: ns4:LoanAppResponsens4:APR

10. Click OK.

8.5.1.6.2 Creating Property Aliases for IDCorr

You create the following two property aliases for the IDCorr correlation set: ■ Map IDCorr to the LoanAppResponse message type part of the receiveSecond receive activity. This receive activity is associated with the SecondReceive partner link defined by the SecondFileRead.wsdl file. ■ Map IDCorr to the CustResponse message type part of the receiveThird receive activity. This receive activity is associated with the ThirdReceive partner link defined by the ThirdFileRead.wsdl file. To create property aliases for IDCorr: 1. In the Structure window, right-click Property Aliases. 2. Select Create Property Alias. 3. In the Property list, select IDCorr. 4. Expand and select Message Types Project WSDL Files SecondFileRead.wsdl Message Types LoanAppResponse_msg Part - LoanAppResponse. 5. In the Query field, press Ctrl+Space to define the following XPath expression: ns4:LoanAppResponsens4:APR

6. Click OK.

7. Repeat Step 1 through Step 3 to create a second property alias for IDCorr.

8. Expand and select Message Types Project WSDL Files ThirdFileRead.wsdl

Message Types CustResponse_msg Part - CustResponse. 9. In the Query field, press Ctrl+Space to define the following XPath expression: