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:
Open the
Manipulate1_1
BPEL process and add the assign activity (AssignNumerical
).We will define several variables for assigning the numerical values.
Tip
The XSD namespace refers to http://www.w3.org/2001/XMLSchema.
Define the
xsd:int
variable as follows:<variable name = "Var_int" type = "xsd:int"/>
Define the
xsd:long
variable...