Book a Demo

Author Topic: "Synch Tagged Values" creates duplicates  (Read 8872 times)

dr_shorthair

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
"Synch Tagged Values" creates duplicates
« on: August 28, 2008, 05:43:29 pm »
I've updated a UML profile in an MDG, adding two new tagged values to a stereotype. When I run "Synch Tagged Values and Constraints" from the resources window, it creates duplicate tagged values on all elements with this stereotype - the ones that already existed, some of which contained values, plus a new complete set of empty tagged values.

This is highly undersirable - I only wanted to synch the model with the profile to get the new tags, not empty duplicates ...

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: "Synch Tagged Values" creates duplicates
« Reply #1 on: August 28, 2008, 08:06:16 pm »
I thought this had been tweaked - I am not sure whether it was completely solved - in build 832. Did you try it in the new build?
No, you can't have it!

dr_shorthair

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: "Synch Tagged Values" creates duplicates
« Reply #2 on: August 29, 2008, 10:18:44 am »
Thanks - seems to be OK in 832.

dr_shorthair

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: "Synch Tagged Values" creates duplicates
« Reply #3 on: September 16, 2008, 05:30:05 pm »
I'm getting this bug again.

Seems to happen if the element stereotype is changed manually.
Then if some of the tagged values had been loaded through the original stereotype, they get added again if they are also associated with the new stereotype.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: "Synch Tagged Values" creates duplicates
« Reply #4 on: September 16, 2008, 09:57:14 pm »
As mentioned, this might not have been completely solved. I thought there was some note or something to that effect.

I strongly urge you submit this to Sparx, together with an example and the steps to manifest the problem.

David
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: "Synch Tagged Values" creates duplicates
« Reply #5 on: September 17, 2008, 08:17:27 am »
Quote
Then if some of the tagged values had been loaded through the original stereotype, they get added again if they are also associated with the new stereotype.
That's the correct behavior.  The tagged values in UML belong to stereotypes.  The synch tagged values command will match tagged values not belonging to any stereotype with those of the stereotype being matched, but it won't match tagged values that it knows that belong to another stereotype.

This allows for you to have both of the stereotypes with that tagged value applied to the one element, and to distinguish between the tagged values.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: "Synch Tagged Values" creates duplicates
« Reply #6 on: September 17, 2008, 09:02:09 am »
Open the Feature Visibility dialog and check all the tagged value compartment options.

Do the tagged values sort themselves out now?
No, you can't have it!