Skip to content
herve91 edited this page May 10, 2016 · 2 revisions

This is a plugin for [Archi](http://www.archimatetool.com/), the free Archimate Tool.

It allows to store models into a database.

  1. Installation
Download the latest JAR file and copy it into Archi's _plugins_ folder and restart Archi. You should see new import and export menus: ![import_menu](https://cloud.githubusercontent.com/assets/9281982/15134539/680de110-166d-11e6-9ce5-353160397f0c.jpg)
  1. Database connection
When importing or exporting a model, the plugin asks information about the database to connect to: ![database_information](https://cloud.githubusercontent.com/assets/9281982/15134625/23b10424-166e-11e6-89d1-ff0441adf26f.jpg)

At the moment, the following databases drivers are included:

  • MySQL
  • Oracle
  • PostGreSQL
The _Remember_ option allows to memorize the information provided. Next time the plugin is used, the values will be automatically filled-in.

The _Do not ask me again_ option tells the plugin not to show this popup again as long as it can connect to the database.

The information is stored in a file called _org.archicontribs.database_ in the Archi folder. Please be aware that **this file is unencrypted** and that your database password will be readable by everybody.

Should you selected the _Do not ask me again_ option and want to see the popup again, you may edit the _org.archicontribs.database_ file and either remove the line _doNotAskAgain=true_ either change the value to _false_.

  1. Import a model
Once connected to the database, a windows shows up and list the models found in the database: ![import_model](https://cloud.githubusercontent.com/assets/9281982/15134832/f514a696-166f-11e6-8a51-ced5f2c7d4ea.jpg)

When a model is selected in the list, the model versions are updated. When a version is selected, the name, relase note, owner and purpose are updated.

It is possible to filter the models listed. The filter is case insensitive and use SQL wildcard character ('%').

At the moment, each model will be imported in a separate Archi model. Thus, it is not (yet) possible to create relations between them.

  1. Export a model
Exporting a model to the database allows to store all its components (well not really all of them at the moment) in the database rather that in a XML file. ![export_model](https://cloud.githubusercontent.com/assets/9281982/15135005/ce1f6c86-1671-11e6-9d5e-66f2310f5e2d.jpg)

The window lists all the models already stored in the database.

The fields are filled in with information retrieve from the Archi model, but it is possible to change all of them. It is even possible to rename the model (as long the ID remains the same).

Changing the ID allows to duplicate the model to a new one. The ID may be customized and must only contain alphanum characters.

It is of course possible to export a model that has not be imported first.

Clone this wiki locally