Deploying with JDeveloper Oracle File Adapter XML Debatching

4-116 Oracle Fusion Middleware Users Guide for Technology Adapters Note your Instance ID in the Recent Instances area.

4. Click the Instances tab. The Instance IDs of the SOA composite are listed.

5. Click the Instance ID that you noted in Step 3. The Flow Trace page is displayed. 6. Click your BPEL process instance. The Audit Trail of the BPEL process instance is displayed. 7. Expand a payload node to view payload details.

8. Click the Flow tab to view the process flow.

9. Click an activity to display the activity details.

4.5.2 Flat Structure for Oracle BPEL PM

This use case demonstrates how a flat structure business process uses the Oracle File Adapter to process address book entries from a Comma Separated Value CSV file. This is then transformed and written to another file in a Fixed Length format. This use case includes the following sections: ■ Section 4.5.2.1, Prerequisites ■ Section 4.5.2.2, Designing the SOA Composite ■ Section 4.5.2.3, Creating the Inbound Oracle File Adapter Service ■ Section 4.5.2.4, Creating the Outbound Oracle File Adapter Service ■ Section 4.5.2.5, Wiring Services and Activities ■ Section 4.5.2.6, Deploying with JDeveloper ■ Section 4.5.2.7, Monitoring Using Oracle Fusion Middleware Control Console

4.5.2.1 Prerequisites

To perform the flat structure business process, you require the following files from the artifacts.zip file contained in the Adapters-101FileAdapterFlatStructure sample: ■ artifactsinputaddress-csv.txt ■ artifactsschemasaddress-csv.xsd ■ artifactsschemasaddress-fixedLength.xsd ■ artifactsxsladdr1Toaddr2.xsl You can obtain the Adapters-101FileAdapterFlatStructure sample by accessing the Oracle SOA Sample Code site, and selecting the Adapters tab.

4.5.2.2 Designing the SOA Composite

You must create a JDeveloper application to contain the SOA composite. To create an application and a project for the use case, perform the following:

1. In the Application Navigator of JDeveloper, click New Application. The Create

Generic Application - Name your application page is displayed.

2. Enter SOA-FlatStructure in the Application Name field, and click OK. The

Create Generic Application - Name your project page is displayed.

3. Enter FlatStructure in the Project Name.

Oracle JCA Adapter for FilesFTP 4-117

4. In the Available list under the Project Technologies tab, double-click SOA to move

it to the Selected list.

5. Click Next. The Configure SOA settings dialog appears.

6. Select Composite With BPEL in the Composite Template box, and click Finish.

The Create BPEL Process - BPEL Process page is displayed.

7. Enter BPELFlatStructure in the Name field, select Define Service Later from

the Template box.

8. Click OK. The SOA-FlatStructure application and the FlatStructure project appear

in the design area, as shown in Figure 4–77 . Figure 4–77 The JDeveloper - Composite.xml

9. Copy the address-csv.xsd and address-fixedLength.xsd files to the schema

directory in your project see Section 4.5.2.1, Prerequisites for the location of this file.

10. Copy addr1Toaddr2.xsl to the xsl directory of your project see

Section 4.5.2.1, Prerequisites for the location of this file.

4.5.2.3 Creating the Inbound Oracle File Adapter Service

Perform the following steps to create an inbound Oracle File Adapter service to read the file from a local directory:

1. Drag and drop File Adapter from the Component Palette to the Exposed Services

swim lane. The Adapter Configuration Wizard Welcome page is displayed.

2. Click Next. The Service Name page is displayed.

3. Enter FlatStructureIn in the Service Name field.

4. Click Next. The Adapter Interface page is displayed.

5. Click Next. The Operation page is displayed.

6. Select Read File, and click Next. The File Directories page is displayed.