State value as a string
No edit summary |
No edit summary |
||
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: | 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 | ||
Or for example: | Or, for example: | ||
(#New).toString | (#New).toString | ||
[[Category:OCL]] | [[Category:OCL]] |
Revision as of 05:37, 31 October 2023
This page was created by Lars.olofsson on 2022-04-05. Last edited by Stephanie 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