Assigning Conditions

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.

3a model
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:

  1. Select the upper sequence flow behind the branching (first) exclusive gateway

  2. Click the Edit button right of the Expression property under the Optional Simulation Properties

  3. The Expression Editor shows up

  4. 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.

  1. Repeat the steps 1 to 3 for the bottom sequence link

  2. We want to follow this sequence link when x is greater than y. Therefore we enter the following expression: Result=(x>y);

Modell 3 a Exp 3
Figure 2. The condition’s expression for the top sequence flow.