Click Return or click a node in the System MBean Browser pane.

8-16 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite

8. In the Composite Template section, select Composite With BPEL Process, and

click Finish. The Create BPEL Process dialog appears. 9. Enter the values shown in Table 8–1 .

10. Accept the default values for all remaining settings, and click OK.

8.5.1.2 Step 2: Configuring Partner Links and File Adapter Services

You now create three partner links that use the SOAP service. This section contains these topics: ■ You create an initial partner link with an adapter service for reading a loan application. ■ You create a second partner link with an adapter service for reading an application response. ■ You create a third partner link with an adapter service for reading a customer response.

8.5.1.2.1 Creating an Initial Partner Link and File Adapter Service

To create an initial partner link and file adapter service: 1. Double-click the MyCorrelationSet BPEL process. 2. In the Component Palette, expand BPEL Constructs. 3. Drag an initial Partner Link activity into the right swimlane of the designer. 4. Click the third icon at the top the Service Wizard icon. This starts the Adapter Configuration Wizard, as shown in Figure 8–4 . Figure 8–4 Adapter Configuration Wizard Startup

5. In the Configure Service or Adapter dialog, select File Adapter and click OK.

6. In the Welcome dialog, click Next.

7. In the Service Name field of the Service Name dialog, enter FirstReceive and

click Next. 8. In the Adapter Interface dialog, accept the default settings and click Next. Table 8–1 Create BPEL Process Dialog Fields and Values Field Value Name Enter MyCorrelationSet. Template Select Asynchronous BPEL Process. Expose as a SOAP Service Select the checkbox. After process creation, note the SOAP service that appears in the Exposed Services swimlane. This service provides the entry point to the composite application from the outside world. Invoking an Asynchronous Web Service from a BPEL Process 8-17

9. In the Operation dialog, select Read File as the Operation Type and click Next.

The Operation Name field is automatically filled in with Read. 10. Above the Directory for Incoming Files physical path field, click Browse. 11. Select a directory from which to read files for this example, C:\files\receiveprocess\FirstInputDir is selected.

12. Click Select.

13. Click Next.

14. In the File Filtering dialog, enter appropriate file filtering parameters.

15. Click Next.

16. In the File Polling dialog, enter appropriate file polling parameters.

17. Click Next.

18. In the Messages dialog, click Browse next to the URL field to display the Type

Chooser dialog.

19. Select an appropriate XSD schema file. For this example, Book1_4.xsd is the

schema and LoanAppl is the schema element selected. 20. Click OK. The URL field Book1_4.xsd for this example and the Schema Element field LoanAppl for this example are filled in. 21. Click Next. 22. Click Finish. You are returned to the Partner Link dialog. All other fields are automatically completed. The dialog looks as shown in Table 8–2 :

23. Click OK.

8.5.1.2.2 Creating a Second Partner Link and File Adapter Service

To create a second partner link and file adapter service: 1. Drag a second PartnerLink activity beneath the FirstReceive partner link activity. 2. At the top, click the third icon the Service Wizard icon. 3. In the Configure Service or Adapter dialog, select File Adapter and click OK. 4. In the Welcome dialog, click Next. 5. In the Adapter Type dialog, select File Adapter and click Next. Table 8–2 Partner Link Dialog Fields and Values Field Value Name FirstReceive WSDL URL directory_pathFirstReceive.wsdl Partner Link Type Read_plt Partner Role Leave unspecified. My Role Read_role