Drag a Partner Link icon into the right Partner Links swimlane.

8-4 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite variables associated with message types as input or output variables for invoke, receive, or reply activities. To display the message type, select the Message Type option, and then select its Browse icon to display the Type Chooser dialog. From here, expand the Message Types tree to make your selection. For this example, Message Types Partner Links Loan Service LoanService.wsdl Message Types LoanServiceRequestMessage is selected. ■ Element This option lets you select an XML schema element of the project schema file or project WSDL file of the current BPEL process service component, or of a partner link. Figure 8–1 shows the Create Variable dialog. Figure 8–1 Create Variable Dialog

7. Click OK.

8. Double-click the invoke activity to display the Invoke dialog.

9. In the Invoke dialog, select the partner link from the Partner Link list for this

example, LoanService is selected and initiate from the Operation list. 10. To the right of the Input field, click the second icon and select the input variable you created in Step 6. The Variable Chooser dialog appears, where you can select the variable. There is no output variable specified because the output variable is returned in the receive operation. The invoke activity is created. For more information about the invoke activity, see Section 8.2.2.5, Invoke and Receive Activities.

11. Click OK.

8.2.1.3 Adding a Receive Activity

Follow these steps to create a receive activity and a global output variable named response. This activity waits for the loan application approver web service’s callback operation. The loan application approver web service uses this output variable to send the loan offer result to the client. Invoking an Asynchronous Web Service from a BPEL Process 8-5 To add a receive activity: 1. From the Component Palette, drag a Receive activity to the location right after the Invoke activity you created in Section 8.2.1.2, Adding an Invoke Activity. 2. Create a variable to hold the receive information by invoking the Create Variable dialog, as you did in Step 3 through Step 7 of Section 8.2.1.2, Adding an Invoke Activity. Figure 8–2 shows the Create Variable dialog in BPEL 1.1. Figure 8–2 Create Variable Dialog

3. Double-click the receive activity and change its name to receive_invoke.

4. From the Partner Link list, select the partner link for this example, LoanService is

selected.

5. From the Operation list, select onResult. Do not select the Create Instance

checkbox.

6. Select the variable you created in Step 3 through Step 7 of

Section 8.2.1.2, Adding an Invoke Activity.

7. Click OK.