Oldest Waiting Processed First

When you need to pull first the entities that have spent the longest time in the system.

Oldest Waiting Processed First

Where to Find the Model Object

The following model object can be found in the model objects directory:

  • Flow Control\ Oldest Waiting Processed First

Difficulty Level

  1. Ease of Use: Easy
  2. Ease of Modification: Moderate

How to Use the Model Object

  1. Open Your Model: Open your model or create a new blank model.
  2. Insert the Model Object into Your Model
    1. Locate the model object Oldest Waiting Processed First and select the insert button.
    2. Move the cursor to the point of insertion and left mouse-click. The upper left corner of the model object will be inserted at the location of the mouse-click.
  3. Connect to Your Model
    1. Connect the incoming route from your model, at the point where you need to process entities with the longest time first, to Work Activity2 InQ.connect to Oldest Waiting Processed First
    2. Connect the outgoing route from Work Activity 2 to the rest of your model.connect from Oldest Waiting Processed First
  4. Update Your Model
    1. Entities automatically line up so that first to arrive are the first to process. Priorities allow items that have taken longer paths (taken longer time) to be processed ahead of items taking shorter paths (shorter times).
    2. The attribute a_Age increments each time an entity routes to a longer path. The Worker selects work based in the highest value of a_Age.get route in Oldest Waiting Processed First
    3. Some paths may take longer to complete. For long paths, the value of a_Age could be incremented by more than one. For example: Inc a_Age,2 //Increments a_Age by 2
  5. Completion: The model object is now integrated into your model, you should now be able to save and then simulate the model.

Controls Usage


  1. a_Age: Used to determine entity priority. It increments each time an entity routes to a longer path.
Was this article helpful?

Related Articles