Book a Demo

Author Topic: Export/import XMI loses Realization links  (Read 13684 times)

mrblack12

  • EA User
  • **
  • Posts: 67
  • Karma: +0/-0
    • View Profile
Export/import XMI loses Realization links
« on: March 05, 2013, 12:01:38 am »
When I do an XMI export from one EAP and import it into another EAP, it looks as though the realization relationships between various objects (e.g. between requirement and business rules) are lost in the process.

Has anyone experienced the same problem and if so, is there a way to prevent this from happening?

Rick

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Export/import XMI loses Realization links
« Reply #1 on: March 05, 2013, 02:31:29 am »
A client in the Dresden area has contacted me regarding exactly this issue. So if you aren't from there it seems as there is a 2nd one having this issue too. However, except for not using sequence diagrams the right way I haven't heard of such anywhere else.

q.

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Re: Export/import XMI loses Realization links
« Reply #2 on: March 05, 2013, 02:53:48 am »
Unfortunately with issue is correct and repeatable.  A fix for that would be a great help :-)

Regards

Stefan
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Export/import XMI loses Realization links
« Reply #3 on: March 05, 2013, 04:58:58 am »
The issue for my client is more specifically that deleted connectors appeared later (magic un-delete).

I might have found one reason: if you have cross package references and delete them you will be asked what to do with the deletions upon check-in ("Missing Cross-References"). The default from EA is to restore the connectors. So if you press Enter and check out the package later (or issue a Get Latest) the deleted connector is back again.

So it's not that connectors get lost. However, I'd be interested in details for the lost connectors.

q.

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Re: Export/import XMI loses Realization links
« Reply #4 on: March 05, 2013, 06:10:44 pm »
Hi Thomas,

i think youre issue is the other way around. There are really connectors, which are getting lost.

To Reproduce it, do the following:
Basic:
EAP-File or DBMS-Repository
Actions:
Select a Package and Export it with XMI Export
Import the XMI to another EAP-File (STRIP GUID NOT Selected)
Export it as another xmi-File
Re-import it in the origin package.  (STRIP GUID NOT Selected)


I tried it out right now with EA10 and it assumes to work now 8-) 8-) or has someone the issue also with EA10?
Can someone try it our with EA9.3?

Regards

Stefan
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website

mrblack12

  • EA User
  • **
  • Posts: 67
  • Karma: +0/-0
    • View Profile
Re: Export/import XMI loses Realization links
« Reply #5 on: March 06, 2013, 02:35:24 am »
What I forgot to mention is that this issue occurs using version 7.3. My company is currently thinking of upgarding to version 10 so it would be great if this bug is somehow fixed in version 10!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Export/import XMI loses Realization links
« Reply #6 on: March 06, 2013, 04:42:07 am »
Stefan,
I ran a quick test on V10 and obviously the connector gets lost. But I guess in this case it's simply a user error. You need the whole model in the 2nd repos. If you have unsolved references - and that is the case if you only import a single page with cross package references - the export is pretty right in not exporting them again. What you are doing is MODIFYING the xmi simply be im-/exporting. Probably you can argue that EA should keep such hanging connectors. But for a fix this would take a big effort in EA's structure. The t_connectors keep only pointers to exiting objects. Only if you resolve these EA is able to export them. This use case is - from EA's perspective - wrong or forbidden. But definitely it's something to keep in mind. Especially if you exchange XMI data with external clients.

q.

StefanPears

  • EA User
  • **
  • Posts: 119
  • Karma: +6/-0
  • Unwissenheit schützt vor Erkenntnis nicht
    • View Profile
Re: Export/import XMI loses Realization links
« Reply #7 on: February 18, 2014, 03:27:24 am »
Hi all, sorry for reopening this old thread, but I guess I have the same problem as discussed above.

When I export a "main package" from an oracle database repository (with its packages controlled by subversion) and I import the XMI into an new and empty EAP-file, all connectors are lost. The main package contains classes and their associations, some are in subclasses. There are no associations to elements outside the main package.

Now I marked some connectors with special text strings before exporting them into XMI. When I examine the XMI file I can find them all and the attributes like sourceId, targetId and other Ids did look pretty well. It seems the export file must be OK? The problem might be in the import process?!

Edit: This might be important: While importing the status line showed the message "Adding Elements to Diagram : Types" for quite a long time and the status bar was nearly filled up when the message box appeared "DAO.field[3163] The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.". After clicking <OK> it continued with "Resolving DiagramIDs" until the end without further messages.

We are using EA 9.3.931 and 10.0.1009. Same problem occurs in both versions.

Thanks for help!
Stefan
« Last Edit: February 18, 2014, 04:18:24 am by sbirner »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Export/import XMI loses Realization links
« Reply #8 on: February 18, 2014, 09:44:17 am »
I remember having heard that. There seems to be a size mismatch in the database fields. EAP is a bit limited. The best is to contact Sparx support directly so they can help you out.

q.
« Last Edit: February 18, 2014, 09:44:46 am by qwerty »

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Export/import XMI loses Realization links
« Reply #9 on: February 18, 2014, 02:44:41 pm »
Stefan,
Regarding your second paragraph - have  your tried using the "Create placeholders for missing External References during XMI 1.1/2.1 Import" - see: http://www.sparxsystems.com/enterprise_architect_user_guide/10/projects_and_teams/xmlspecifications.html
This will indicate if any elements are external.

StefanPears

  • EA User
  • **
  • Posts: 119
  • Karma: +6/-0
  • Unwissenheit schützt vor Erkenntnis nicht
    • View Profile
Re: Export/import XMI loses Realization links
« Reply #10 on: February 18, 2014, 08:02:21 pm »
Yes, I tried "Create placeholders for missing External References during XMI 1.1/2.1 Import" before. This did not help. One reason is, that there are no connectors to "outside" packages. All internal connectors and even recursive associations are lost.

Btw.: I also tried "Recync status with VC provider" because I first expected the Subversion installation to be damaged.

I will contact Sparx support now.

tx!

StefanPears

  • EA User
  • **
  • Posts: 119
  • Karma: +6/-0
  • Unwissenheit schützt vor Erkenntnis nicht
    • View Profile
Re: Export/import XMI loses Realization links
« Reply #11 on: March 12, 2014, 10:34:07 pm »
Sparx support offered me to examine the XML file but I was not allowed to send files to outside of the company.

With some help of of my collegues I found a connector with a guard condition having a lenght of 256 chars. I shortened it to 255 chars and the problem was solved. @SPARX: please fix this isue.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
« Last Edit: March 19, 2014, 07:36:27 am by skiwi »
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.