State value as a string
(Updated Edited template to July 12, 2025.)
No edit summary
 
Line 1: Line 1:
<message>Write the content here to display this box</message>
<message>Write the content here to display this box</message>
If you want to get a state machine state as a string, for example, using an [[OCLps|OCL-PS]] expression, use:
If you want to get a state machine state as a string, for example, using an [[Documentation:OCLps|OCL-PS]] expression, use:
  (#state-name).toString
  (#state-name).toString
Or, for example:
Or, for example:

Latest revision as of 05:39, 13 February 2025

This page was created by Lars.olofsson@mdriven.net on 2022-04-05. Last edited by Stephanie@mdriven.net 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