Archi Forum

Archi => General Archi Discussion => Topic started by: TarjaR on October 10, 2017, 08:49:53 AM

Title: Export / import part of Archi model?
Post by: TarjaR on October 10, 2017, 08:49:53 AM
Hi you proficient Archi users!

How can I export part of my Archi model for my customer to import it into their Archi model (to merge)?

I did not find a way to tell which diagrams/views I want to export into XML format (and of course their elements and relationships).

Hoping to get an answer,
TarjaR
Title: Re: Export / import part of Archi model?
Post by: Jean-Baptiste Sarrodie on October 10, 2017, 08:55:36 AM
Hi,

Well, this is not really possible: the whole point of ArchiMate is to create models, so the model is the unit, not the view.

The model repository & Collaboration plugin (https://www.archimatetool.com/plugins) has been created to allow such offline contribution (with full support for merging), but as you haven't used it right from the begining this is difficult to merge "after the fact".

This topic has been discussed in the forum and some manual ways to do it has been exposed, but none is perfect :-(

Regards,

JB
Title: Re: Export / import part of Archi model?
Post by: TarjaR on October 10, 2017, 09:23:17 AM
Thanks for the answer!

I was afraid of that...
So as I am working as a consultant and creating only parts of the final model and having no access to their model, I have to create each view as a separate model that they can open with their Archi. But they cannot merge them into theirs - if I understood correctly.

They are total beginners with modeling tools.
I have used various for decades... but I'm new with Archi.

Actually I tried to export the whole model and import it into another model to test the whole thing so I can make a guide how to do it.
When importing I got an error message: Key 'viewRef' with value '<value>' not found for identity constraint of element 'views'.
Do you know what this refers to?

I did drag views from the model tree to the default view of the model to show a sort of front page. Might this be the cause of the error?

The import did not do anything after that, so nothing was imported.

BR, TarjaR
Title: Re: Export / import part of Archi model?
Post by: Jean-Baptiste Sarrodie on October 10, 2017, 09:31:33 AM
Hi,

There are different strategies to adopt depending on maturity level. Basically, for people new to moddeling I would suggest to split the whole knowledge across several models. This request to define a logic to split this knowledge. Typical ways of doing it are: per project, per application, per business domain... Doing this would allow you to work on a model without the need to merge it.

When maturity reach some higher level, people work on one single (and big) model. This requires before all a good understanding of what a model is and a good governance in place to avoid people changing things outside of their own scope. For this I would recommend the model repository & collaboration plugin. This is very simple to put in place (basically only requires a Git server) and will support several workflows, one of interrest being you having a copy of the whole model and doing changes on it offline, then merging them back to the original model when your clients are ok with the result.

Regards,

JB
Title: Re: Export / import part of Archi model?
Post by: Hervé on October 10, 2017, 14:59:31 PM
Hi TarjaR,

Your aim is guite the same as mine.

My database plugin (https://github.com/archi-contribs/database-plugin/tree/master/v2 (https://github.com/archi-contribs/database-plugin/tree/master/v2)) allows you to do what you wish:

To import those views, right click on your model's tree (on the left handside of the archi graphical interface), then select "import individual component", then select "views" on the import popup.

You have two import modes:

Best regards
Hervé
Title: Re: Export / import part of Archi model?
Post by: TarjaR on October 11, 2017, 08:24:49 AM
Thank you, JB and Hervé!
Let's see what my customer decides - it is their model, but of course I try to help.

Best regards,
TarjaR
Title: Re: Export / import part of Archi model?
Post by: Jean-Baptiste Sarrodie on January 03, 2018, 10:14:45 AM
Hi,

interesting, this is related to this discussion (http://forum.archimatetool.com/index.php?topic=471.0) I've just opened.

I'm adding it to the list of use-cases.

JB