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 ...

Get WS-BPEL 2.0 Beginner's Guide 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.