State value as a string
(Replacing message template with parser tag)
(Updated Edited template to July 12, 2025.)
Line 5: Line 5:
  (#New).toString  
  (#New).toString  
  [[Category:OCL]]
  [[Category:OCL]]
{{Edited|July|12|2024}}
{{Edited|July|12|2025}}

Revision as of 06:03, 20 January 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