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:

  1. Open the XSLT mapper in JDeveloper.
  2. We see that all the elements have the transformation links from the source ...

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.