When will you need this?
When you need to know the quantity of entities (parts, patients etc) at a specific location or area at any time during the simulation.
Action logic goes on the red routes.
Before Activity2: Inc v_WIP1
After Activity3: Dec v_WIP1
Add Labels to review WIP at an activity or a location in real-time.
The variable for WIP can be used in action logic to determine entity movements. Example:
IF v_WIP1 > 2 Then
a_Dir = 1
a_Dir = 2