Book a Demo

Author Topic: MDG Tagged Value Connector Limiting to One Stereotype  (Read 4129 times)

Lefty

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
MDG Tagged Value Connector Limiting to One Stereotype
« on: January 19, 2019, 04:32:21 am »
Hello,
I am having problems with the tag value connector in my MDG technology. I am trying to use the same tag value name that connects two different stereotypes to two other different stereotypes. However when I import the MDG it only lets me select objects of the first stereotype for all uses of a tag value with the name.

An example will hopefully make it more clear:

Stereotype 1 (<Node>) of a Class uses the tag value connector to create a tag value called "Owner" that links to Stereotype 2 (<Organization>) for selection.

Stereotype 3 (<Document>) of a Class uses the tag value connector to create a tag value called "Owner" that links to Stereotype 4 (<Role>) for selection.

However, the "Owner" tag values on <Document> objects only let me select objects with the stereotype <Organization>.
How can I make it so that "Owner" tag values on <Document> objects will let me select <Role> objects?

Lefty

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: MDG Tagged Value Connector Limiting to One Stereotype
« Reply #1 on: January 19, 2019, 08:57:39 am »
As a temporary solution I have created a custom tagged value that allows for the selection of either stereotype and not use tag value connectors at all:

Tag Name: Owner

Type=RefGUIDList;
Values=Class;
Stereotypes=Organization,Role;

This does allow me to select and <Organization> or <Role> for the tag value for both <Node> and <Document>.
While this is not ideal it is preferable to not being able to select a <Role> at all for a <Document>.

If there is a way to make it so I can only select an <Organization> for a <Node> and only a <Role> for a <Document> with the same tag value name I would much prefer that.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: MDG Tagged Value Connector Limiting to One Stereotype
« Reply #2 on: January 20, 2019, 01:04:30 am »
Not sure how you did that, but the TV from each stereotype do not depend on each other.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: MDG Tagged Value Connector Limiting to One Stereotype
« Reply #3 on: January 21, 2019, 05:48:55 pm »
Not sure how you did that, but the TV from each stereotype does not depend on each other.

q.
To echo qwerty,
I think you have two different versions of the same named tagged value: Owner.  If you want one (same-named TV) then your solution is the only one available.

If, on the other hand, you have TWO TVs NodeOwner and DocumentOwner then you can specify more precisely (target restriction) what you want.

Of course, elsewhere you need to associate both specific instances of Owner with the generic Owner concept.

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

Lefty

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: MDG Tagged Value Connector Limiting to One Stereotype
« Reply #4 on: January 22, 2019, 04:22:13 am »
I think you have two different versions of the same named tagged value: Owner.  If you want one (same-named TV) then your solution is the only one available.


Thank you. I guess that is the solution I am going with then.