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...")
 
No edit summary
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 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:
[[File:2017-09-14 14h02 09.png|none|thumb]]
[[File:2017-09-14 14h02 09.png|none|thumb]]
[[Category:OCL]]
[[Category:Intermediate]]

Revision as of 10:59, 21 September 2017

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.

Article.allinstances->select(a|a.oclIsInState(#Manufacturing))

A state machine can be defined like so:

2017-09-14 14h02 09.png
This page was edited 70 days ago on 02/10/2024. What links here