Skip to content

Gate Conditions

A gate’s Conditions tab opens and closes it from what is happening in the model, rather than from a clock. Two expressions, each evaluated as the run proceeds.

The gate Conditions tab

  • Open Condition: the gate opens when this becomes true.
  • Close Condition: the gate closes when this becomes true.

You can set either or both. Build them with the picker, or select Edit Raw to type an expression directly.

The same vocabulary as an action logic condition:

KindExamples
Entity identityEntity.Name, Entity.TypeName, Entity.Id
Entity stateEntity.Age
Your own symbolsattributes such as a_Priority, variables such as v_Ready
Model queriesActivity("Pack").Contents, Resource("Loader").FreeUnits

Compare text with double quotes and numbers bare:

Entity.Name = "Bus"
Entity.Age > 30

This is also how a gate reacts to a signal: an open condition such as Signal("Go").Active opens the gate the moment that signal is sent.

Worth checking before a run: a gate whose Default State is Normally Closed, with no schedule and no open condition, never opens. Nothing is scheduled to change its state, and entities pile up in its waiting queue for the whole run. The only escape is an OpenGate or ToggleGate call from logic.

If a run finishes with everything stacked behind one gate, this is the first thing to look at.

An OpenGate or ToggleGate call anywhere in the model puts that gate under logic control for the rest of the run, and the conditions on this tab stop governing it from that moment. See Gate Events. Choose one approach per gate.

A gate running as Pull or as a Kanban control is governed by downstream demand, so it cannot also carry conditions. On those gates the tab is hidden and any stored conditions are cleared. See Gate Blocking and Gate Flow Control.