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 for using in an [[OCLps|oclPS]] 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
for example
Or for example:
  (#New).toString
  (#New).toString
[[Category:OCL]]
[[Category:OCL]]

Revision as of 08:00, 1 March 2023

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
This page was edited 98 days ago on 02/10/2024. What links here