Chapter 4. Conditions and Loops
Conditions and loops are important constructs in every programming language. Conditions allow us to implement branches. Loops provide the possibility for the code to execute more than once. In this chapter, we will look at conditions and loops in BPEL. We will look at the if
/elseif
/else
activity, which is how conditions are expressed in BPEL. For loops, BPEL has more options. We will become familiar with while, repeat until, and for each loops. We will also explain which to use when. We will look into the detailed syntax of each loop and learn when to use parallel loops.
In this chapter, we will take a closer look at the if
/elseif
/else
activity and at the various loop activities provided by BPEL. As we move along the chapter, we will cover the following topics:
- Understanding conditions and learning how to use the
<if>
activity - Understanding loops
- Getting familiar with the
<while>
loop - Getting familiar with the
<repeatUntil>
loop - Getting...