State value as a string
(Created page with "If you want to get a state machine state as a string, for example for using in an oclPS expression, use; (#state-name).asString for example (#New).asString")
 
(Automatically adding template at the end of the page.)
 
(5 intermediate revisions by 3 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).asString
  (#state-name).toString
for example
Or, for example:
  (#New).asString
  (#New).toString
[[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