Skip to content

State Machine Regions

Mikołaj Milewski edited this page Oct 27, 2026 · 2 revisions

Regions

Region is a container for States and Pseudostates with their outgoing Transitions.

Regions may be added implicitly or explicitly depending of the context:

  • each State Machine has an implicit Region at its root - there is no need to add it in the code,
  • each Composite State has an implicit Region as a child element - there is no need to add it in the code,
  • each Orthogonal State can have multiple explicit Regions as a child elements, each Region must be added in the code using AddRegion() method.

By using Composite and Orthogonal States, Regions can be nested, efectively creating hierarchy of Regions. This hierarchy is crucial when Transitions evaluation priority is considered.

Transitions sourced within a Region can target a State or Pseudostate in another Region.

Clone this wiki locally