Author Topic: {query} constrained operations  (Read 1782 times)

qwerty

  • EA Guru
  • *****
  • Posts: 10504
  • Karma: +232/-190
  • I'm no guru at all
    • View Profile
{query} constrained operations
« 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
« Last Edit: March 15, 2018, 02:45:56 am by qwerty »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9399
  • Karma: +260/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: {query} constrained operations
« Reply #1 on: March 15, 2018, 04:21:29 am »
You can select Is Query in the Modifiers (along with Pure, Const and others)

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 10504
  • Karma: +232/-190
  • I'm no guru at all
    • View Profile
Re: {query} constrained operations
« Reply #2 on: March 15, 2018, 06:28:59 am »
Ahhh! That reveals an ellipsis when clicked. Well, EAUI...

Thanks, Geert.

q.