Defining Conditional Branching with the Switch Activity in BPEL 1.1
Assume you designed a flow activity in the BPEL process service component that gathered loan offers from two companies at the same time, but did not compare either of the offers. Each offer was stored in its own global variable. To compare the two bids and make decisions based on that comparison, you can use a switch activity.
Figure 11-5 provides an overview of a BPEL conditional branching process that has been defined in a switch activity.