🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
OCLOperators stateMachineTrigger
Created by Lars.olofsson on 2019-05-12 · Last edited by Vale.buyondo on 2026-02-19.

Triggers any state transition without triggers for an object's statemachines.

Use this to make the statemachines of an object re-evaluate all guards from the current state and transition if possible.

Using the stateMachineTrigger, you can create statemachines that follow a path set out by guards instead of having to manually use named triggers.

Syntax

Object.stateMachineTrigger

Example

self.stateMachineTrigger

Tells the object to check if it can move to a new state based on the new data