Book a Demo

Author Topic: RefGUID tags info lost when doing xmi import  (Read 3276 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
RefGUID tags info lost when doing xmi import
« on: June 01, 2016, 06:47:25 pm »
We are using RefGUID tagged values to reference Change requests from our model elements as a way to do change management.
(keep track of which things are changed because of a CR).

We ran into a problem when retrofitting some of our changes to a branch model.
The idea was that we could simply export a set of existing CR's from our main trunk to our branch model, and because of the GUID's the import would not break any existing links.

That assumption is true, but only if you import the elements in the same package!
If you import them into a subpackage (effectively moving existing elements to another package) then EA deletes the elements and recreates them in the subpackages (instead of updating the existing elements).
Now for regular connectors this is not a problem as the xmi import mechanism keeps track of the connectors and reconnects them after the creation, but for tagged values this is a problem. All the tagged values referencing a CR where cleared when the CR was deleted, and the guid was not filled in again after the recreation, leaving a bunch of tags pointing no nowhere anymore.

So now we have to manually reconnect a few hundred tagged values to their respective CR's, not the most enjoyable tasks imaginable :/

Reported as bug

Geert