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

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