Goals of this session

- Assignment of conditions for decision making at gateways

How-to

Since we learned how to define variables in lesson Assigning Process Variables, we now can define conditions at the exclusive gateway of Model 3.a (see the picture below). We will use the variables x, y and z from the previous lesson.

Figure 1: Model 3a from the Simulation Tutorial |

Approach

We will first define the condition of the upper sequence flow behind the branching (first) exclusive gateway:

- Select the upper sequence flow behind the branching (first) exclusive gateway
- Click the Edit button right of the Expression property under the Optional Simulation Properties
- The Expression Editor shows up
- We want to follow this sequence link when x is smaller than y. Therefore we enter the following expression: Result=(x<y);

Now we setup the condition for the bottom sequence link.

- Repeat the steps 1 to 3 for the bottom sequence link
- We want to follow this sequence link when x is greater than y. Therefore we enter the following expression: Result=(x>y);

Figure 2: The condition's expression for the top sequence flow. |