State value as a string
No edit summary
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
If you want to get a state machine state as a string, for example for using in an [[OCLps|oclPS]] 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
for example
Or, for example:
  (#New).toString
  (#New).toString  
[[Category:OCL]]
{{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