add_wip_controller
Limits the number of entities simultaneously in a section to a defined maximum, blocking new entries until a slot is released.
Instructions
WIP (Work In Progress) limiter — Kanban / CONWIP entry gate.
Limits the number of entities in a controlled section to at most wip_limit
simultaneously. When the limit is reached, entry is blocked (not rejected) until
an entity exits the section and returns a WIP slot.
Structure: [Input] + [WIPSlots(K)] --[Enter DET=0]--> [Output]
After wiring the controlled section, call connect_wip_return to close the loop: each transition T that produces tokens into the section's exit place gets an extra output arc T -> [WIPSlots]. The entity is NOT consumed — it continues to flow through the exit place to its downstream consumer (terminator, next stage, etc.) while a WIP slot is recycled.
Use cases:
CONWIP production lines: at most K pallets in the system at once
Kanban pull control: K kanban cards gate work entry
Pipeline stages: limit concurrent requests to K
Thread pool / worker pool modelling
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| wip_limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |