Book a Demo

Author Topic: How to setup Stereotypes with tagged values and use them  (Read 2969 times)

mgodoy-br

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
How to setup Stereotypes with tagged values and use them
« on: October 01, 2020, 05:48:48 am »
Hi again. I have a question related to a MDG scenario. It's complicate to summarized it, so I'm going to describe my scenario:

1) I've created a profile containing my stereotype bound to a MetaClass based on a class. In my stereotype, I created an attribute, hoping that it be interpreted like a tagged value.

2) I've created a class using that stereotype that I had created earlier. So, I try to set the tagget value in this class. However, the tagget value bound to the stereotype doesn't show up in none of property window.

When am I doing wrong? I'm following this PDF https://sparxsystems.com/resources/user-guides/14.0/modeling/mdg-technologies.pdf, but I'm using the last EA 15.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: How to setup Stereotypes with tagged values and use them
« Reply #1 on: October 01, 2020, 08:04:16 am »
Hi again. I have a question related to an MDG scenario. It's complicated to summarize it, so I'm going to describe my scenario:

1) I've created a profile containing my stereotype bound to a MetaClass based on a class. In my stereotype, I created an attribute, hoping that it be interpreted like a tagged value.

2) I've created a class using that stereotype that I had created earlier. So, I try to set the tagged value in this class. However, the tagged value bound to the stereotype doesn't show up in any of the property windows.

When am I doing wrong? I'm following this PDF https://sparxsystems.com/resources/user-guides/14.0/modeling/mdg-technologies.pdf, but I'm using the last EA 15.
Have you looked at the generated profile?  That may help isolate where the problem is.  If it's in the profile then the MDG should create it when you create a NEW item.  If you have existing items, it may not appear until you "Synchronize the Stereotype" from the Toolbox.

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

mgodoy-br

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: How to setup Stereotypes with tagged values and use them
« Reply #2 on: October 02, 2020, 01:48:30 am »
I found the issue: I have named the metaclass with a different name from "Class".

Another thing it's EA doesn't seem toolboxes when the MDG is inside the same project. I have to export and imported.

Now, I can get into my MDG toolbox and synchronize the stereotype.

Thank you for your assistence. It helped me a lot!