Modeling How-To's > Routing Modeling > Routing to a Previous Activity

Routing to a Previous Activity

Sometimes entities make multiple passes through the same activity. In such instances, the activity time or routing may be a function of which pass it is.

 

The model used for this example, as well as all of the modeling "how-to" examples, can be found in the ProModel Solutions Café (http://www.promodel.com/solutionscafe/howto/). A video demonstrating this solution can be found here.

Solution

  1. Define an attribute for the entity of type integer.
  2. Click on the Logic button in the activity Properties dialog.
  3. Define an INC statement to increment the value of the attribute.
  4. If you want the activity processing to change based on the value of the attribute, in the Logic Builder define an IF-THEN statement to determine what processing to perform.
  5. If you want the routing to change based on the value of the attribute, in the routing Properties dialog define a Conditional routing and select the next location based on the attribute value.
Example

At a doctor’s office, patients check in at a receptionist desk and wait for their name to be called to see the doctor. After their appointment, they return to the receptionist desk to pay for the visit and schedule any follow-up visit. The first pass through this activity takes only N(1,.2) minutes and then patients go to a waiting area. The second pass takes N(2,.5) minutes and then patients exit the office.

Solution

Logic for Receptionist Activity.

Routing to Waiting Area.

Routing to Exit.

An attribute called aPass is defined which is incremented (INC aPass) in the Logic Builder of the Receptionist activity dialog. An IF-THEN statement is defined to cause the wait time to be a function of the value of Pass. The conditional routing chooses the destination as the Waiting Area if pass is equal to 1 (i.e., this is the first pass), or To Exit if pass is equal to 2.


© 2014 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com