Book a Demo

Author Topic: Best practice to import XMI  (Read 9171 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Best practice to import XMI
« on: December 18, 2019, 01:39:20 am »
Hi,

I have a common model repository from where an XMI file will be generated for each version.
Those XMI files will be imported (strip GUIDs option disabled) into separate client EA projects. These projects will have their own models linked to the common model elements and using them in local diagrams.
The RAS cannot be used at the moment.

I initially thought that the cleaner way to install a clean new version on a client project was to delete the model branch (pkg) and run an XMI Import. This doesn't work because even though the GUIDs are the same, I have a feeling it resets the ObjectID, leading to a loss on the diagrams representing common model elements.
I ran an XMI import on the existing package and it worked. I even saw old elements removed as expected. Can you confirm this is the right way to proceed (similar to importing a new version from the RAS) ?

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: Best practice to import XMI
« Reply #1 on: December 18, 2019, 02:13:46 am »
Yes, that is the way we do it, except that we use a link to TFS (version control) to manage the whole thing.

Deleting manually is not a good idea as that will delete all links from your local model to your common model.
The xmi import process keeps temporary references while deleting things to avoid this problem.

Geert

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Best practice to import XMI
« Reply #2 on: December 18, 2019, 07:44:41 pm »
Thank you for your feedback Geert. 
Guillaume

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