Creating the Outbound Oracle File Adapter Service Wiring Services and Activities

Oracle JCA Adapter for FilesFTP 4-133 Figure 4–89 The JDeveloper - Composite.xml

4.5.4.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:

1. Drag the small triangle in the ScalableDOMIn 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 ScalableDOMOut in the External References area. The JDeveloper composite.xml appears, as shown in Figure 4–90 . 4-134 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 4–90 The JDeveloper - Composite.xml

3. Click File, Save All.

Add a Receive Activity 1. Double-click BPELScalableDOM. The BPELScalableDOM.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 ReceiveFile 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 ScalableDOMIn, as shown in

Figure 4–91 , and click OK. Oracle JCA Adapter for FilesFTP 4-135 Figure 4–91 The Partner Link Chooser Dialog

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 composite.xml page

appears, as shown in Figure 4–92 . 4-136 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 4–92 The JDeveloper - BPELScalableDOM.bpel Add an Invoke Activity 1. Drag and drop an Invoke activity from the Component Palette to the design area. 2. Double-click the Invoke activity. The Invoke dialog is displayed. 3. Enter WriteFile in the Name field.

4. Click Browse Partner Links at the end of the Partner Link field. The Partner Link

Chooser dialog is displayed.

5. Select ScalableDOMOut, and click OK.

6. Click the Automatically Create Input Variable icon to the right of the Input

variable field in the Invoke dialog. The Create Variable dialog is displayed.

7. Select the default variable name and click OK. The Input variable field is

populated with the default variable name. The Invoke dialog is displayed.

8. Click OK. The JDeveloper BPELScalableDOM.bpel page appears, as shown in

Figure 4–93 . Oracle JCA Adapter for FilesFTP 4-137 Figure 4–93 The JDeveloper - BPELScalableDOM.bpel Page Add an Assign Activity 1. Drag and drop an Assign activity from the Component Palette in between the Receive and Invoke activities in the design area.

2. Double-click the Assign activity. The Assign dialog is displayed.

3. Enter AssignPayload in the Name field.

4. Click the Copy Operation tab. The Assign dialog is displayed, as shown in

Figure 4–94 . Figure 4–94 The Assign Dialog - Copy Operation Tab 4-138 Oracle Fusion Middleware Users Guide for Technology Adapters

5. Select Copy Operation. The Create Copy Operation dialog is displayed.

6. Expand the variables in the From and To panes, as shown in Figure 4–95 . Figure 4–95 The Create Copy Operation Dialog

7. Click OK. The Assign dialog is displayed, as shown in

Figure 4–96 . Figure 4–96 The Assign Dialog

8. Click OK, the JDeveloper BPELScalableDOM.bpel page is displayed, as shown in

Figure 4–97 . Oracle JCA Adapter for FilesFTP 4-139 Figure 4–97 The JDeveloper - BPELScalableDOM.bpel

9. Click File, Save All.

4.5.4.6 Deploying with JDeveloper

You must deploy the application profile for the SOA project and the application you created in the preceding steps. To deploy the application profile using JDeveloper, perform the following steps:

1. Create an application server connection. For more information, see

Section 2.7, Creating an Application Server Connection for Oracle JCA Adapters.

2. Deploy the application. For more information, see

Section 2.8, Deploying Oracle JCA Adapter Applications from JDeveloper.

4.5.4.7 Monitoring Using Fusion Middleware Control Console

You can monitor the deployed SOA composite using Fusion Middleware Control Console. Perform the following steps: 1. Navigate to http:servername:portnumberem. The composite you deployed appears in the application navigator. 2. Copy the address-csv-large.txt file to the input directory and ensure it gets processed. Check the output directory to ensure that an output file has been created. 3. Click the SOA composite that you deployed. The Dashboard is displayed. 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. 4-140 Oracle Fusion Middleware Users Guide for Technology Adapters 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. Additionally, click an activity to view

the details of an activity.

4.5.5 Oracle File Adapter ChunkedRead

This is an Oracle File Adapter feature that uses an invoke activity within a while loop to process the target file. This feature enables you to process arbitrarily large files. This use case includes the following sections: ■ Section 4.5.5.1, Prerequisites ■ Section 4.5.5.2, Designing the SOA Composite ■ Section 4.5.5.3, Creating the Inbound Oracle File Adapter Service ■ Section 4.5.5.4, Creating the Outbound Oracle File Adapter Service ■ Section 4.5.5.5, Wiring Services and Activities ■ Section 4.5.5.6, Deploying with JDeveloper