State value as a string
(Automatically adding template at the end of the page.)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
If you want to get a state machine state as a string, for example, using an [[OCLps|OCL-PS]] expression, use:
<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 [[Documentation:OCLps|OCL-PS]] expression, use:
  (#state-name).toString
  (#state-name).toString
Or, for example:
Or, for example:
  (#New).toString  
  (#New).toString  
  [[Category:OCL]]
  [[Category:OCL]]
{{Edited|July|12|2024}}
{{Edited|July|12|2025}}

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