In the Name field, enter ServerBPELProcess. From the Template list, select Asynchronous BPEL Process. In the Name field, enter Mediator.

19-62 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite Figure 19–51 singleString_To_process.xsl Window

16. In the Routing Rules section, under Callback, click the icon to the right of the

Transform Using field. The Request Transformation Map dialog is displayed.

17. Select Create New Mapper File and click OK.

The XSLT Mapper is displayed and a target file named processResponse_To_ singleString.xsl is added.

18. Drag and drop the client:processResponse source element to the cb1:singleString

target element. The Auto Map Preferences dialog is displayed.

19. From the During Auto Map options, deselect Match Elements Considering their

Ancestor Names and click OK.

19.4.1.4 Task 4: How to Create a Client BPEL Process

To create a client BPEL process: 1. In the Application Navigator, double-click composite.xml. The SOA Composite Editor is displayed.

2. From the Component Palette, select SOA.

3. Drag and drop a BPEL Process to the Components section.

The Create BPEL Process dialog is displayed.

4. In the Name field, enter ClientBPELProcess.

5. From the Template list, select Asynchronous BPEL Process.

6. Click OK.

ClientBPELProcess is created in the SOA Composite Editor.

7. Drag and drop the ClientBPELProcess BPEL process to the Mediator Oracle

Mediator. The SOA Composite Editor appears, as shown in Figure 19–48 . Creating Oracle Mediator Routing Rules 19-63

19.4.1.5 Task 5: How to Create the Invoke, Receive, and Assign Activities

To create the invoke activity: 1. Double-click ClientBPELProcess. The Oracle BPEL Designer is displayed. 2. Drag and drop an Invoke activity from the Component Palette to the design area. 3. Double-click the Invoke activity. The Invoke dialog is displayed. 4. In the Name field, enter InvokeMediator. 5. Next to the Partner Link field, click Browse Partner Links. The Partner Link Chooser dialog is displayed.

6. Select Operation - execute, and click OK.

7. To the right of the Variable field in the Invoke dialog, click the Auto-Create

Variable icon. The Create Variable dialog is displayed.

8. In the Variable field, enter InvokeMediator_execute_InputVariable_1

and click OK. The Invoke dialog is displayed. 9. Click OK. The Oracle BPEL Designer appears. To create the receive activity:

1. Drag and drop a Receive activity from the Component Palette to the design area.

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

3. In the Name field, enter ReceiveFromMediator.

4. Next to the Partner Link field, click Browse Partner Links. The Partner Link

Chooser dialog is displayed.

5. Select Operation - callback, and click OK.

6. To the right of the Variable field in the Receive dialog, click the Auto-Create

Variable icon. The Create Variable dialog is displayed.

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

with the default variable name.

8. Check Create Instance, and click OK. The Oracle BPEL Designer appears.

To create the assign activity: 1. Drag and drop an Assign activity from the Component Palette between the ReceiveFromMediator and InvokeMediator activities in the design area. 2. Double-click the Assign activity. The Assign dialog is displayed. 3. In the Name field, enter AssignRequest. 4. Click the Copy Operation tab. The Assign dialog is displayed. 5. Select Copy Operation. The Create Copy Operation dialog is displayed. 6. Create the copy operation between the triggers file name and the file variable, as shown in Figure 19–52 .