🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
State value as a string
This page was created by Lars.olofsson on 2022-04-05. Last edited by Stephanie on 2025-02-13.

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

(#state-name).toString

Or, for example:

(#New).toString
MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments