Author Topic: Tagged Values not updated when changing stereotype  (Read 3466 times)

tmtm

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Tagged Values not updated when changing stereotype
« on: January 25, 2008, 09:44:57 am »
Is there a easy way to add the tagged values of a stereotype to an existing model element?

I've found that after an element is created, changing its stereotypes has no effect on its tagged values. If I want the tagged values from a new stereotype, the only way I can see is to go to the Resources window, locate and right-click on the stereotype, and select "Synch Tagged Value and Constraints..." This is a very cumbersome process and unnecessarily slows the modeling process.

Is this just the way it is, or am I doing something wrong?

Thank you.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Tagged Values not updated when changing stereo
« Reply #1 on: January 25, 2008, 11:22:21 am »
AFAIK this is the only way to ensure they are in sync. Not good news I know, but it seems to be the way things are.
No, you can't have it!

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: Tagged Values not updated when changing stereo
« Reply #2 on: January 26, 2008, 06:45:47 am »
And I rather have them stay this way. I wouldn't like a specific tag valued I added, not in the stereotype context, to be removed automatically when I change the stereotype.
Recursion definition:
If you don’t understand the definition read "Recursion definition".

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Tagged Values not updated when changing stereo
« Reply #3 on: January 26, 2008, 07:34:55 am »
Quite some time ago Sparx discussed this in the forum. They were aware of the relative merits and cautions of both approaches. They chose to take the route they did for the same reason as Martin discusses. This way does not break preexisting software, at the (small) cost of adding a step to the synchronization process.
No, you can't have it!

Dave_Bullet

  • EA User
  • **
  • Posts: 295
  • Karma: +0/-0
    • View Profile
Re: Tagged Values not updated when changing stereo
« Reply #4 on: January 27, 2008, 02:23:05 pm »
I agree EA should not remove a populated tagged value if you change stereotypes -but what about removing ones that are still null (and never set a value?)

Again - an options switch to configure the behaviour might suit both camps.

A debatable bug with sync tagged values, is if they are enumeration based and you change the enumeration values in your profile, the sync won't update the tagged values with the old enumeration lists to the new ones (this is because the enumerations are stored with each tagged value).  Again this might be by design, but a user override option would be handy.

David.
"I know I'm close to a good design, but it's like the balloon animals, squeeze in one spot and the problem moves down the line"

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: Tagged Values not updated when changing stereo
« Reply #5 on: January 27, 2008, 09:37:36 pm »
Sounds fairly reasonable to me, even a good idea  ;)
Recursion definition:
If you don’t understand the definition read "Recursion definition".