Book a Demo

Author Topic: MDG: add relationships between built-in elements  (Read 4396 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
MDG: add relationships between built-in elements
« on: February 11, 2022, 10:23:23 pm »
Hi,

I set up a custom MDG with stereotyped SysML blocks and ports. For the internal block diagram, standard SysML parts will be used (not stereotyped) and I would like to create stereotyped connectors between them.
EA Strict Connector Syntax preference has been enabled to restrict the allowed connectors as per the MDG definition (using metaconstraints ..)

When I try to create a stereotyped connector between parts, I get the following error: "invalid combination of source and target types for this connector type".
If I disable the  Strict Connector Syntax, it works.

In the MDG, I added the Part (Property) metaclass and created a "stereotyped relationship" link with stereotype tagged value = "customConnect". I also used the metaconstraint links between customConnect stereotype and the Part metaclass.
Is there a way to extend the allowed connectors on native element types such as Parts ?
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: MDG: add relationships between built-in elements
« Reply #1 on: February 11, 2022, 10:35:38 pm »
I'm not sure if stereotyped relationship works for native elements, but I believe it works when you make metaconstraints with umlrole=client/supplier for your connector stereotype.

Geert

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: MDG: add relationships between built-in elements
« Reply #2 on: February 12, 2022, 12:12:19 am »
Hi Geert,

Thanks for the advice.
Even though it didn't work, I managed to find the solution: I tend to put metaclass elements within a profile subpackage. Having moved it to the root package, it worked :)
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: MDG: add relationships between built-in elements
« Reply #3 on: February 12, 2022, 12:02:17 pm »
Hi Geert,

Thanks for the advice.
Even though it didn't work, I managed to find the solution: I tend to put metaclass elements within a profile subpackage. Having moved it to the root package, it worked :)
Hi Guillaume,

Can you explain EXACTLY what you mean by your solution?  I have a similar issue and this may solve my problem too.  But it's not clear I'm in the same place you were before the fix.

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