Author Topic: Using connector subtype in an MDG  (Read 3351 times)

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Using connector subtype in an MDG
« 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 ?
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Using connector subtype in an MDG
« Reply #1 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
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Using connector subtype in an MDG
« Reply #2 on: November 23, 2020, 08:14:47 am »
Can you just add "UML::UCInclude" to your custom toolbox, or do you need something else?
The Sparx Team
[email protected]

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Using connector subtype in an MDG
« Reply #3 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



Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com