Book Image

WS-BPEL 2.0 Beginner's Guide

Book Image

WS-BPEL 2.0 Beginner's Guide

Overview of this book

If you are a software architect, a designer, a software developer, an SOA and BPM architect, a project manager, or a business process analyst who is responsible for the design and development of business processes, composite applications, and BPM/SOA solutions, then this book is for you. You should have a clear grasp of general SOA concepts including business processes and web services, but no prior knowledge of the BPEL language is required.
Table of Contents (14 chapters)
13
Index

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