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.
Complete the steps for drawing a link, described in
Adding a Link with no Transition
Select a link and double-click it. Alternately, in the Properties view, click the
Dialog (...) Button
Build an XPath (or other language) expression, as described in
Using the Expression Builder
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
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.