Sparx Systems Forum

Discussion => Bugs and Issues => Topic started by: Mats Gejnevall on November 29, 2017, 11:22:00 pm

Title: Exporting package including elements in other parts of the repository
Post by: Mats Gejnevall on November 29, 2017, 11:22:00 pm
Hi all
Is it possible to export everything in a package including related elements in other packages and move them to another EA respository? I have created a more detailed set of models in this repository but I do not want them there long term. Would the packages of the related elements also be included in such an export?

Thanks
Mats
Title: Re: Exporting package including elements in other parts of the repository
Post by: Uffe on November 30, 2017, 01:08:13 am
Hej Mats,

Not with a regular XMI export. If you've got the Reusable Asset Service set up, its upload function checks for dependencies and prompts you to include them. Main selling point of that service right there.

I think an XMI import includes references (GUID) to out-of-scope elements, so that they can be resolved if the referenced elements are present in the target project, but I think the import ignores those that cannot be resolved. I may be wrong on this.

HTH,


/Uffe
Title: Re: Exporting package including elements in other parts of the repository
Post by: Geert Bellekens on November 30, 2017, 02:35:45 am
I think an XMI import includes references (GUID) to out-of-scope elements, so that they can be resolved if the referenced elements are present in the target project, but I think the import ignores those that cannot be resolved. I may be wrong on this.

That is exactly how I understood it works, so if you are wrong then so am I.

Geert
Title: Re: Exporting package including elements in other parts of the repository
Post by: Simon M on November 30, 2017, 08:18:28 am
I think an XMI import includes references (GUID) to out-of-scope elements, so that they can be resolved if the referenced elements are present in the target project, but I think the import ignores those that cannot be resolved. I may be wrong on this.
There is an option to create placeholders for external references. If you use this and then later import the package containing those elements, it will restore the links to those elements by the packages imported earlier.
Title: Re: Exporting package including elements in other parts of the repository
Post by: Mats Gejnevall on November 30, 2017, 09:20:32 pm
So I can do an XMI export and import it later and the external references will be set up correctly?
Title: Re: Exporting package including elements in other parts of the repository
Post by: qwerty on November 30, 2017, 09:43:02 pm
If you're lucky, then yes. 99.99% happiness guaranteed, though  ;)

q.