Book a Demo

Author Topic: Profile sync stereotype not adding TV  (Read 4201 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Profile sync stereotype not adding TV
« on: November 12, 2015, 09:42:07 pm »
Hi,

I created a UML profile with a stereotype that's been used for a couple of weeks. Following the users' feedback, I deleted a property, and created a new one.

Having installed the new profile in the EA project, I tried to run Sync Tagged Values and Constraints on the stereotypes.
- it seems to have migrated the unmodified TV (ok)
- the TV for the removed property still exists (I'm ok with that as I can delete it via a simple script based on its TV name)
- the new stereotype property has not led to a new TV in the existing stereotyped elements --> is there a way to fix this e.g. via a script or other?

Thanks!
Guillaume

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


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Profile sync stereotype not adding TV
« Reply #1 on: November 12, 2015, 09:44:42 pm »
Which EA version?

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Profile sync stereotype not adding TV
« Reply #2 on: November 12, 2015, 09:59:28 pm »
I've done such a scenario in the past couple of weeks, and it seemed to work fine for me.
The only thing you need to make sure is that your elements are really connected to the stereotype from your new profile.

Create a new element with your stereotype and compare that with an existing. You might see some differences in the t_xref with regards to the stereotype.

For me the synchronize always added missing tagged values. I never deletes any.

Geert

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Profile sync stereotype not adding TV
« Reply #3 on: November 13, 2015, 12:16:45 am »
Hi Geert,

Thanks for your input. It helped me finding out what was wrong in my project.
I remembered that my UML profile has been renamed at some point which means that some items were associated with a missing UML Profile.
I fixed it with the following run on MySQL directly:

Code: [Select]
UPDATE t_xref SET Description='@STEREO;Name=NewName;GUID={C7S888FD-346F-4cbd-888C-179C4F9DC46B};FQName=MDG Hidden::NewName;@ENDSTEREO;' WHERE Description Like '%FQName=OldUMLProfile::OldName%';
(note that I had to hide the name of my UML profile in the above UPDATE)

Finally I deleted my old Tagged Values with the following:
Code: [Select]
DELETE from t_objectproperties where property like 'obsolete_property' AND ea_guid like '{0099AC82-0A30-440a%';
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: Profile sync stereotype not adding TV
« Reply #4 on: November 13, 2015, 01:42:02 am »
I had to do something similar for a client who decided to rename their profile as well. :)

Geert