Using the functions in the transformation operations
In this recipe, we will examine how the functions are used in the XSLT mapper. The functions provide a convenient way of transforming data in a BPEL process. In this recipe, we will use some of the available functions, such as the multiply operation and the if branch statement.
Getting ready
For this recipe, we will take the example from the Performing copy between the variables recipe. We will extend the example by using a function to add a margin to the rent price of the car.
How to do it…
The following steps describe the actions needed to use the functions in the XSLT transformations:
Open the XSLT mapper in JDeveloper.
We see that all the elements have the transformation links from the source to the target nodes. We delete the link that connects the price by clicking on the link and clicking on the Delete button.
From the Component Palette on the right side, we choose the multiply mathematical function and drop it on the middle section of...