Book a Demo

Author Topic: Recovering project subtree via xmi export/import  (Read 3471 times)

mikebk

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Recovering project subtree via xmi export/import
« on: October 04, 2005, 02:11:06 pm »
I need to recover a project tree from a backup database. I had the database restored from a backup into a temporary location. I started EA with a connection string for the temporary database and used XMI export to generate an XML file for the project tree C.1.

I then restarted EA with the normal database and deleted project tree C.1. I tried creating a project node C.temp, selected it and tried importing into it. There was a warning that the current package will be deleted before import. I OK'd that and then get a message that the XML contains a Model which may be placed at the root level. Press yes to import a Root Model, No to place under the selected package. Yes produces a (root) node 1. No produces a node C.temp.1.

I don't seem to be able to move node 1. onto node C - nothing happens when I drag. If I attempt to move node C.temp.1 onto C, I can see the node name as I drag but it doesn't move when I release the mouse. If I try choosing node C and try to import, I'm warned it will be deleted. As that would delete 4 other project subtrees, I haven't dared use this option.

What do I need to do differently to restore C.1?

Thanks

Mike

AshK

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: Recovering project subtree via xmi export/impo
« Reply #1 on: October 04, 2005, 05:25:22 pm »
Hi Mike,

I've just replicated your situation and have found that C.1 is imported and does not remove C's other sub-packages.

It seems that the warning message is misleading; the current package would only be deleted if it was C.1.  We're looking at adjusting the warning.

You're safe to go ahead and import into C*.  

*fine print*: I'd be most upset if those were my famous last words here at Sparx, so please backup C before doing so.

HTH,

Ash


« Last Edit: October 04, 2005, 05:29:43 pm by AshK »
The Sparx Team
[email protected]

AshK

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: Recovering project subtree via xmi export/impo
« Reply #2 on: October 04, 2005, 05:36:19 pm »
Oh, and with regards to your drag 'n drop issue: I have no idea why this is happening.  It works fine for me :-/.

Which version of EA are you using?
Is it only affecting packages?

« Last Edit: October 04, 2005, 05:36:41 pm by AshK »
The Sparx Team
[email protected]

mikebk

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Recovering project subtree via xmi export/impo
« Reply #3 on: October 05, 2005, 07:20:30 am »
I'm using EA 4.81 (build 750).

I have only seen the "drag and drop problem" if I create a new package directly under C (say C.temp1) and import the export for C.1 into C.temp1. At this point, I never seem to be able to  drag C.temp1.1 into C but can see the translucent image of .1. I don't know if I'm seeing a drag and drop problem or an import/export problem.

In the past I've been able to move packages around but currently don't seem to be able to "promote" a level 3 package to level 2.

If I create new packages C.temp2 and C.temp3 then import C.1 under C.temp2, I can move C.temp2.1 into C.temp3. If I try to drag C.temp2 into C.temp3, I get an error "You cannot drag a view level package to another location in the tree". Perhaps this error might be behind the drag and drop issue.

What seems to have worked is selecting C then importing the C.1 export. Allow it to delete and let it put the package inside the current package (and NOT as a view root). I hope all will be well now but I'll need to check further.

Incidentally, what does the Include Diagrams option in the export dialog do? Our diagrams seem to come through without selecting this option.

There are a few opportunities to polish EA in the above text.

Thanks

Mike

mikebk

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Recovering project subtree via xmi export/impo
« Reply #4 on: October 11, 2005, 07:23:50 am »
I've noticed that some of the text in the project explorer view didn't come though the export/import. The same text is missing from the sequence diagram where it was displayed as the text for boundaries. (This doesn't affect all the boundaries in a diagram several seem to come through).

Mike