Navigate to AsyncMediatorSample BPEL Processes ServerBPELProcess

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 . 19-64 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite Figure 19–52 The Create Copy Operation Dialog

7. Click OK in the Create Copy Operation dialog.

8. Click OK to return to the Oracle BPEL Designer, as shown in

Figure 19–53 .