🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
State value as a string
Created by Lars.olofsson on 2022-04-05 · Last edited by Lars.olofsson on 2026-04-13.

If you want to get a state machine state as a string, for example, using an OCL-PS expression, use:

(#state-name).asString

Or, for example:

(#New).asString