Author Topic: MDG - how to attach (embed) one metatype in another?  (Read 3539 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
MDG - how to attach (embed) one metatype in another?
« on: March 21, 2018, 02:05:57 pm »
We have decided that we want to attach details of the REST API endpoints to our Required or Provided Interfaces (as operations on the interface).

The problem comes when we want to render them.  Even if we create a shapescript which has both Rectangular and non-Rectangular notation forms, Required and Provided Interfaces are "special" - there is no Rectangular form as we usually know it (drawnativeshape() - ONLY draws a ball or socket).  In addition, the sizes are (pretty much) fixed. The scripts don't respond to defsize() requests (although, in typical EAUI fashion, Ports do!).

So my question is, is there a way to make an MDG item be defined as "attached" (aka embedded) directly in another item?  In that way, we could use some other form of item (which does support Rectangular notation) as the basis for our specific Required or Provided Interfaces?

Paolo
« Last Edit: March 21, 2018, 04:15:24 pm by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: MDG - how to attach (embed) one metatype in another?
« Reply #1 on: March 21, 2018, 04:27:40 pm »
Paolo,

I think you can. Check the BPMN MDG for examples. (embedded intermediate events)

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: MDG - how to attach (embed) one metatype in another?
« Reply #2 on: March 22, 2018, 10:41:48 am »
Paolo,

I think you can. Check the BPMN MDG for examples. (embedded intermediate events)

Geert
Thanks for the "heads-up", Geert!
Should have thought about that myself.  I had a quick look and it may be related to the xxxxEvents being both Events and ObjectNodes.  However before I (potentially) waste a lot of time over this, can a Sparxian confirm that's the kind of thing I can do?

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!