Assigning numerical values to the variables

Assigning different numerical values to variables is not directly a BPEL or Java feature. However, BPEL variables are basically XML variables. The variable definitions are based on the XML schema where we define different numeric types for three variable elements.

Getting ready

This recipe builds on the two BPEL processes we created in the previous two recipes named Manipulate1_1 and Manipulate2_0.

How to do it…

In the following steps, we define variables with various types in a BPEL process. All of the following variables can also be defined through the JDeveloper wizards the same way we defined the global and local variables:

  1. Open the Manipulate1_1 BPEL process and add the assign activity (AssignNumerical ...

Get BPEL and Java Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.