Chapter 3. Variables, Data Manipulation, and Expressions
A very important part of each BPEL process is the orchestration of services (partner links) through the operation invocations. With each operation invocation, messages are exchanged. When a BPEL process invokes an operation on the external service and when it receives the result, we often want to store the messages temporarily, while the BPEL process is executing. The same holds true for other data that is related to the process state. This is where we need to use variables.
BPEL supports variables like any other programming language. It allows data manipulation in different ways, as we will see in this chapter. In contrast to many other programming languages, variables in BPEL are stored in XML. This means that manipulating variables in BPEL requires us to be familiar with XML and XML schemas.
In this chapter, we will learn how to declare and use variables, how to store, assign, copy, and manipulate data within variables...