OCLOperators oclIsInState
(Replacing message template with parser tag) |
(Updated Edited template to July 12, 2025.) |
||
Line 6: | Line 6: | ||
[[Category:OCL]] | [[Category:OCL]] | ||
[[Category:Intermediate]] | [[Category:Intermediate]] | ||
{{Edited|July|12| | {{Edited|July|12|2025}} |
Revision as of 05:58, 20 January 2025
This page was created by Hans.karlsen on 2017-09-14. Last edited by Stephanie on 2025-02-24.
oclIsInState checks whether an object has 1 or more state machines defined - and if one of these state machines is currently in the state in question.
Article.allinstances->select(a|a.oclIsInState(#Manufacturing))
A state machine can be defined like this:
See also: State value as a string