🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
OCLOperators oclIsInState
This page was created by Hans.karlsen on 2017-09-14. Last edited by Stephanie on 2025-02-24.

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
MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments