Sparx Systems Forum

Enterprise Architect => Uml Process => Topic started by: qwerty on March 15, 2018, 02:43:40 am

Title: {query} constrained operations
Post by: qwerty on March 15, 2018, 02:43:40 am
I had imported OMGs UML metamodel and just realized that most (all?) operations are suffixed with {query}. I don't see anything in EA that lets me set this. But going into the Post tab I find an OCL constrained which has written "Body" in the Type drop down. It's not possible to set that in EA manually. Could anyone from Sparx enlighten me what that is?

q.

P.S. The metamodel seem to have a property  isQuery : Boolean = false
Title: Re: {query} constrained operations
Post by: Geert Bellekens on March 15, 2018, 04:21:29 am
You can select Is Query in the Modifiers (along with Pure, Const and others)

Geert
Title: Re: {query} constrained operations
Post by: qwerty on March 15, 2018, 06:28:59 am
Ahhh! That reveals an ellipsis when clicked. Well, EAUI...

Thanks, Geert.

q.