Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Ian Mitchell on November 21, 2020, 01:28:09 am

Title: Using connector subtype in an MDG
Post by: Ian Mitchell on November 21, 2020, 01:28:09 am
I need to create an MDG which uses the built-in use case/use case <<include>> connector type.
When used by native EA, this creates a connector with
- type="UseCase"
- subtype = "Includes"
- stereotype = "Includes"

If my MDG tries to replicate this connector type (inputing data via the Profile Helper UI) then I can set the _metatype ("includes") but I can't see a way to specify the subtype. I can't even find an example of another of the supplied MDGs using this idea.
Does anyone know what I need to put into my MDG to set the stereotype?

BTW, if I don't set the subtype correctly, then examples of that connector don't look right, and I'm guessing all the groovy EA use case related behaviour also won't work. So it matters that it's done right.
Is there a simple extra bit of XML to put into the MDG profile ?
Title: Re: Using connector subtype in an MDG
Post by: Paolo F Cantoni on November 21, 2020, 10:09:58 am
I need to create an MDG which uses the built-in use case/use case <<include>> connector type.
When used by native EA, this creates a connector with
- type="UseCase"
- subtype = "Includes"
- stereotype = "Includes"

If my MDG tries to replicate this connector type (inputting data via the Profile Helper UI) then I can set the _metatype ("includes") but I can't see a way to specify the subtype. I can't even find an example of another of the supplied MDGs using this idea.
Does anyone know what I need to put into my MDG to set the stereotype?

BTW, if I don't set the subtype correctly, then examples of that connector don't look right, and I'm guessing all the groovy EA use case related behaviour also won't work. So it matters that it's done right.
Is there a simple extra bit of XML to put into the MDG profile?
Hi Ian,
Have you confirmed that direct injection of the subtype in the DB restores the functionality?

Does not the _subtypeProperty do the job?

HTH,
Paolo
Title: Re: Using connector subtype in an MDG
Post by: KP on November 23, 2020, 08:14:47 am
Can you just add "UML::UCInclude" to your custom toolbox, or do you need something else?
Title: Re: Using connector subtype in an MDG
Post by: Ian Mitchell on November 23, 2020, 08:00:03 pm
@Paulo - yes, direct insert into the database (t_connector.subType="Includes") makes everything work fine.

"UML::UCInclude" works fine, and the Connector toolbox tag looks like:
    <Tag name="UML::UCInclude" default=" include another use case" />

Documentation for this is at https://www.sparxsystems.com/enterprise_architect_user_guide/15.1/modeling/connectors_used_in_toolboxes.html. My bad.
Thanks KP