OCLOperators oclIsInState
(Created page with "oclIsInState checks an object that has 1 or more state machines defined - if one of these state machines are currently in the state in question.<blockquote>Article.allinstance...")
 
(Automatically adding template at the end of the page.)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
oclIsInState checks an object that has 1 or more state machines defined - 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 so:
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.
[[File:2017-09-14 14h02 09.png|none|thumb]]
Article.allinstances->select(a|a.oclIsInState(#Manufacturing))
A state machine can be defined like this:
[[File:2017-09-14 14h02 09.png|none|thumb]]See also: [[State value as a string]]
[[Category:OCL]]
[[Category:Intermediate]]
{{Edited|July|12|2024}}

Latest revision as of 15:42, 10 February 2024

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:

2017-09-14 14h02 09.png

See also: State value as a string

This page was edited 89 days ago on 02/10/2024. What links here