Applying mathematical calculations on data in the variables
JDeveloper provides the standard set of mathematical calculations that can be used in the BPEL processes. We will use the mathematical calculations on numerically defined variables.
Getting ready
This recipe continues the discussion of the BPEL process Manipulate1_1
from the Assigning numerical values to the variables recipe.
We extend the request and response message structure in Manipulate1_1.xsd
. The request message is extended with the item
and priceVAT
elements as follows:
<element name = "process"> <complexType> <sequence> <element name = "input" type = "string"/> <element name = "item" type = "string"/> <element name = "priceVAT" type = "decimal"/> <element name = "child_no" type = "integer"/> </sequence> </complexType> </element>
The response message is extended with the priceNet
and vat
elements as follows:
<element name = "processResponse...