🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
OCLOperators oclIsInState
(Automatically adding template at the end of the page.)
(Adding message template to the top of the page)
Line 1: Line 1:
{{message|Write the content here to display this box}}
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.
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))
  Article.allinstances->select(a|a.oclIsInState(#Manufacturing))

Revision as of 22:25, 16 June 2024

This page was created by Hans.karlsen on 2017-09-14. Last edited by Stephanie on 2025-02-24.

Write the content here to display this box

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

MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments