This recipe describes how to define a global variable inside a BPEL process in Oracle SOA Suite.
There are no special preparations required for this recipe. We create a project in JDeveloper with an empty synchronous BPEL process.
In the following steps, we will show you how to add a global variable to a BPEL process in JDeveloper:
We start by opening the BPEL process in JDeveloper. We then select the scope of the BPEL process. Note that it will be highlighted blue. We then select the variables icon in the BPEL process toolbar as shown in the following screenshot:
The dialog opens with the variables listed for the specified scope. We click on the plus (+) sign in the dialog as shown in the following screenshot:
When BPEL is created through the BPEL process wizard in JDeveloper, we notice that it already has two global variables defined, one holding the request message and another one holding the response message.
The Create...