About BPEL Overview of SOA Integration

Configuring Oracle Reports Services 8-79

8.10.2 Submitting Jobs to the Reports Server from a BPEL Process Asynchronously

To submit jobs to the Oracle Reports server from a BPEL process asynchronously, do the following:

1. Create a new asynchronous BPEL process project and use the

RWWebservice.xsd file to define the input and output parameters of the BPEL process.

2. Create a Partner link that refers to the WSDL of the newly created BPEL process:

■ When prompted by Oracle JDeveloper, click Yes to create Partner link types. ■ Select Partner Role.

3. Create a scope in your process.

4. Within the scope, create an Invoke activity and use it to invoke the runJob

operation on the intermediate process Partner link.

5. Create input variables automatically. The input parameter provides input to the

runJob operation of the intermediate BPEL process.

6. Create a Receive activity to receive the callback from the intermediate process.

7. Within the scope, before the Invoke activity, create an Assign activity:

■ In this Assign activity, map the user input parameters to the parameters that the intermediate BPEL process requires. ■ Set Param0 = reports job command string. ■ Set Param1 = true boolean, specifying that the job submission must be synchronous.

8. Within the scope, after the Invoke activity, create a Receive activity.

9. Create input variables automatically. The input parameter receives a response

from the runJobresponse operation of the intermediate BPEL process.

10. Within the scope, after the Invoke activity, create an Assign activity. In this Assign

activity, map the input variable of the Receive activity to the result variable that is written back to the client.

11. Compile and deploy the BPEL process on the SOA suite.

12. Use the Oracle BPEL Process Manager console to run the BPEL process.

8.11 Optimizing the Deployment of Reports

Before you deploy a report on a machine that is either slow or is running on a load, you may want to configure the following: Important: For completing steps from 2 to 11 mentioned in Section 8.10.1 , see the following documents: ■ Oracle Fusion Middleware Installation Guide for Oracle SOA Suite ■ Oracle Fusion Middleware Developers Guide for Oracle SOA Suite ■ Oracle Fusion Middleware Tutorial for Running Fusion Order Demo for Oracle SOA Suite