State value as a string
(Adding message template to the top of the page)
(Replacing message template with parser tag)
Line 1: Line 1:
{{message|Write the content here to display this box}}
<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 [[OCLps|OCL-PS]] expression, use:
  (#state-name).toString
  (#state-name).toString

Revision as of 07:57, 17 June 2024

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