# State machine

The state machine has been extended by a monitor feature. This feature can be enabled by the CMake flag: FEATSTD\_STATEMACHINE\_MONITOR\_ENABLED. This feature adds events on different locations to track changes within the state machine. Depending on the type of change a MonitorEvent or a TransitionMonitorEvent will be sent. To receive this events, an event listener has to be attached to Candera::Internal::StateMachineBehaviorData::State::GetMonitorEventSource().

---