Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Paolo F Cantoni on March 21, 2018, 02:05:57 pm

Title: MDG - how to attach (embed) one metatype in another?
Post by: Paolo F Cantoni 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
Title: Re: MDG - how to attach (embed) one metatype in another?
Post by: Geert Bellekens on March 21, 2018, 04:27:40 pm
Paolo,

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

Geert
Title: Re: MDG - how to attach (embed) one metatype in another?
Post by: Paolo F Cantoni 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