Creating the Outbound Oracle File Adapter Service

Oracle JCA Adapter for FilesFTP 4-119

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

3. Enter FlatStructureOut in the Service Name field.

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

5. Select Define from operation and schema specified later, and click Next. The

Operation page is displayed.

6. Select Write File, and click Next. The File Configuration page is displayed.

7. Enter the physical path for the output directory and enter address_SEQ.data in the File Naming Conventionpo_SEQ.txt field.

8. Click Next. The Messages page is displayed.

9. Click Browse For Schema File that appears at the end of the URL field. The Type

Chooser dialog is displayed.

10. Click Project Schema Files, address-fixedLength.xsd, and Root-Element.

11. Click OK. The URL field in the Messages page is populated with the

address-fixedLength.xsd file.

12. Click Next. The Finish page is displayed.

13. Click Finish. The outbound Oracle File Adapter is now configured and

composite.xml appears, as shown in Figure 4–79 . Figure 4–79 The JDeveloper - Composite.xml

4.5.2.5 Wiring Services and Activities

You have to assemble or wire the three components that you have created: Inbound adapter service, BPEL process, Outbound adapter reference. Perform the following steps to wire the components: 4-120 Oracle Fusion Middleware Users Guide for Technology Adapters 1. Drag the small triangle in the FlatStructureIn in the Exposed Services area to the drop zone that appears as a green triangle in the BPEL process in the Components area. 2. Drag the small triangle in the BPEL process in the Components area to the drop zone that appears as a green triangle in the FlatStructureOut in the External References area. The JDeveloper Composite.xml appears, as shown in Figure 4–80 . Figure 4–80 The JDeveloper - Composite.xml

3. Click File, Save All.

Add a Receive Activity 1. Double-click BPELFlatStructure. The BPELFlatStructure.bpel page is displayed. 2. Drag and drop a Receive activity from the Component Palette to the design area. 3. Double-click the Receive activity. The Receive dialog is displayed. 4. Enter ReceiveCSV in the Name field. 5. Click Browse Partner Links at the end of the Partner Link field. The Partner Link Chooser dialog is displayed.

6. Select FlatStructureIn, and click OK.

7. Click the Auto-Create Variable icon to the right of the Variable field in the Receive

dialog. The Create Variable dialog is displayed.

8. Select the default variable name and click OK. The Variable field is populated with

the default variable name.

9. Check Create Instance, and click OK. The JDeveloper BPELFlatStructure.bpel

page appears, as shown in Figure 4–81 .