Book a Demo

Author Topic: Package import : loss of links to other packages  (Read 2863 times)

thorkhas

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • moo
    • View Profile
Package import : loss of links to other packages
« on: August 05, 2008, 08:35:36 pm »
Hello,

Here is what I am trying to do.

I want to duplicate a package within the same model. For this, I first export my package using UML 2.1 or 1.3 (both won't work) and full EA tagged values.

Then I import the XMI file into the same model, while stripping GUID's so the elemnts from the XMI file will be created and EA won't issue an error (since the XMI files contains GUIDs that already exist in the model).

The problem is : when i'm doing this, any reference to elements that are outside of the package are lost (instance classifiers of objects, diagram links to elements that are outside the package...).

That is strange since these elements are still in the model, so if EA exported the package contents with references to those elements GUIDs, they should still be seen after importing.

Is my issue clear ? Did anyone else encounter the same issue and found a workaround ?

Thanks,

Thorkhas

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Package import : loss of links to other packag
« Reply #1 on: August 06, 2008, 08:21:43 am »
Yes, you made yourself clear.  When stripping guids, the XMI file being imported must be fully self-contained because EA makes every guid in the file unique.

thorkhas

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • moo
    • View Profile
Re: Package import : loss of links to other packag
« Reply #2 on: August 06, 2008, 07:17:26 pm »
Quote
Yes, you made yourself clear.  When stripping guids, the XMI file being imported must be fully self-contained because EA makes every guid in the file unique.

Hi, thanks for your reply.

However isn't it possible to include the GUIDs of referenced objects within the XMI file ? That would avoid redoing all the references by hand...

Is there another means to quickly restore the references once the package has been imported (within the same model as the export i remind you), aside from doing copy/paste as link and respecifying the instance classifiers ?

Thanks