Add a link with a transition condition based on the completion of the source activity. The condition must evaluate to a Boolean true before the target activity can begin.
The following illustration shows an example of condition that prevents an activity from executing if an amount is too large.
In this example, the parameters refer to a BPEL process variable holding data from a WSDL message. For more information, see
Using Variables.
Linking Activities
You can link any two activities; however, you should use a gateway to clarify the intended purpose of linking. In the following illustration, the construct on the left shows using a gateway and adding a label to describe the transition condition on the link.
On the right side, is a receive linked to two activities. Note that a transition condition is indicated by a mini-gateway diamond; however, you can add a label here as well.