State value as a string
No edit summary
(Automatically adding template at the end of the page.)
 
(3 intermediate revisions by 2 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;
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]]
{{Edited|July|12|2024}}

Latest revision as of 15:47, 10 February 2024

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