Designer > Using Links > Adding a Link Between Activities

Adding a Link Between Activities

Add a link between two activities to control the order of execution of the activities. You can add a link with a transition condition or without one.

Adding a Link with no Transition

Add a simple link from a source activity to a target activity to require the source to finish successfully before the target executes.
  1. 1. Ensure that two activities are on the Process Editor canvas that you want to link.
  2. 2. Select the source activity and then use Shift + selectto select the target activity.
  3. 3. Select the Link toolbar button or select Link Activities from the right mouse menu of one of the activities.
  4. 4. Process Developer names the link L1. You can double-click the link to open the Transition Builder dialog.
  5. 5. In the Properties view, you can rename the link, if desired.
Tip: You can use the BPMN Edge tool in the Palette, if desired. To do so, select the tool and then select the source activity. Connect the link to the target, as shown on the left in the illustration. Select the Select tool to turn off the Edge tool.
Link between two activities

Adding a Link with a Transition Condition

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.
  1. 1. Complete the steps for drawing a link, described in Adding a Link with no Transition.
  2. 2. Select a link and double-click it. Alternately, in the Properties view, click the Dialog (...) Button next to Transition Condition.
  3. 3. Build an XPath (or other language) expression, as described in Using the Expression Builder.
  4. The following illustration shows an example of condition that prevents an activity from executing if an amount is too large.
    Hover help displaying link transition condition
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.
transition conditions with and without a gateway

Link Examples

The following illustrations show some ways you can use links.
You can also consider Designing With Links vs. Structured Activities.
Example 1
In the first example, the second sequence executes if the link evaluates to true; otherwise, the reply executes.
Example 2
In the following example, a scope is running in parallel with a sequence. An activity in one sequence has a link to an activity in the other sequence.