If Activity

This activity enables you to define conditional behavior for specific activities to decide between two or more branches. Only one activity is selected for execution from a set of branches.

Note:

This activity replaces the switch activity in BPEL 2.0 projects.

Figure A-20 shows an if activity with the following defined if, elseif, and else branches.

For more information about the if activity, see Defining Conditional Branching with the If Activity in BPEL 2.0.