OCLOperators oclIsInState
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
oclIsInState checks an object | oclIsInState checks whether an object has 1 or more state machines defined - and if one of these state machines are currently in the state in question.<blockquote>Article.allinstances->select(a|a.oclIsInState(#Manufacturing))</blockquote>A state machine can be defined like this: | ||
[[File:2017-09-14 14h02 09.png|none|thumb]][[State value as a string]] | [[File:2017-09-14 14h02 09.png|none|thumb]]See also: [[State value as a string]] | ||
[[Category:OCL]] | [[Category:OCL]] | ||
[[Category:Intermediate]] | [[Category:Intermediate]] |
Revision as of 11:20, 28 February 2023
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 are 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