Archi Forum

Archi => Archi Development => Topic started by: orefalo on March 15, 2016, 21:49:34 PM

Title: *.archimate renderer plugin for Confluence
Post by: orefalo on March 15, 2016, 21:49:34 PM
Hi,

I'd like to create a plugin for confluence (Atlassian) to render *.archimate files.

Any pointers in the source code would be appreciated. Bottom line, I need a render() function that can produce a browser friendly image format (png,gif,jpg)

Thank you
Title: Re: *.archimate renderer plugin for Confluence
Post by: Phil Beauvoir on March 16, 2016, 09:17:12 AM
Hi,

you can only build an image from an internal model that has been rendered in a GEF/Draw2D model. Take a look at com.archimatetool.editor.diagram.util.DiagramUtils. Also, take a look at the code in the export methods in HTML report and Jasper Reports.

If, however, you want to create a function outside of Eclipse/Archi then...you'll have to process the .archimate file and draw boxes and lines using an external library. Take a look at http://www.eads-iw.net/web/imagine/archimagine

Phil
Title: Re: *.archimate renderer plugin for Confluence
Post by: Pascal Dussart on July 10, 2016, 10:21:13 AM
I was thinking about a setup where an archimate view is converted to a PlantUML script. PlantUML has recently been updated for Archimate (experimental, still).

For those who don't know PlantUML: it graphically renders scripted UML models. PlantUML can be embedded in a lot of 3rd party tools and Atlassian Confluence is one of them.

Have a look at http://plantuml.com/archimate.html or http://plantuml.com/classes.html

An Archi CVS export to PlantUML script conversion might be a feasible proof-of-concept

pascal
Title: Re: *.archimate renderer plugin for Confluence
Post by: Jean-Baptiste Sarrodie on July 10, 2016, 20:35:12 PM
Hi,

Another option is to export the .archimate file using the HTML report. Then you'll have a list of images that you can link from confluence. Those images are named using the internal ID of the views, so name will be the same even if you update the views and re-export the model.

Regards,

JB
Title: Re: *.archimate renderer plugin for Confluence
Post by: Pascal Dussart on July 11, 2016, 08:36:26 AM
That is one of the solutions that are relatively simple to realize. It can be automated too.

Confluence has a HTML Import macro, but from my experience it has a mind of its own when it comes to content-caching. Also, I'll need to find a way for visiting browsers to keep caching to a minimum (since the URL to the view-images don't change)