Author Topic: XMI 2.1 Import preserve id  (Read 145 times)

oblivion

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
XMI 2.1 Import preserve id
« on: November 01, 2019, 08:04:01 am »
Hello,
I am trying to import UML Model using XMI 2.1 importer into EA 15 from another system.
Though the operation is successful, I noticed that EA has generated new ids. This will be problem if I need to roundtrip the model (as Normative XMI) from EA to our internal system
It is possible to preserve the xmi:id during import ?  I have tried both options of Strip GUIDs
e.g.
Imported
Code: [Select]
<packagedElement xmi:type="uml:Class" xmi:id="1C8B28EA-6FB8-4D44-979B-8C4049AB4B80" name="Class1">
Exported from EA
Code: [Select]
<packagedElement xmi:type="uml:Class" xmi:id="EAID_5921D4B6_7F48_4720_97FB_2BD92167F09F" name="Class1"/>
thanks
Abraham

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6923
  • Karma: +67/-10
    • View Profile
Re: XMI 2.1 Import preserve id
« Reply #1 on: November 01, 2019, 08:13:50 am »
No. EA will always generate new ids for XMI coming from another tool.
Eve

support@sparxsystems.com

Sunshine

  • EA User
  • **
  • Posts: 873
  • Karma: +67/-5
  • Its the results that count
    • View Profile
Re: XMI 2.1 Import preserve id
« Reply #2 on: November 01, 2019, 09:44:38 am »
If you want to roundtrip the model between Sparx EA and some other system then you'll probably have to write your own plugin. We have a similar problem as our data architects who insist on using power designer for conceptual, logical and physical data models so we've wrote a plug-in that does the data transfer one-way. We are considering two way but not sure if its worth the effort.
Happy to help
:)

oblivion

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: XMI 2.1 Import preserve id
« Reply #3 on: November 02, 2019, 01:51:50 am »
Thank you from the response. That answers my initial question  :)
I do need to read and understand more on EA batch import to ask a follow-up question in new thread. Whether we can batch import multiple xmi files with references between


qwerty

  • EA Guru
  • *****
  • Posts: 10769
  • Karma: +241/-213
  • I'm no guru at all
    • View Profile
Re: XMI 2.1 Import preserve id
« Reply #4 on: November 02, 2019, 02:07:54 am »
Exporting will use the GUID which in import are restored (usually). You can end up with open references that are closed once the missing XMI is imported. You should avoid external XMI references, but it's possible.

q.