I have a number of Archimate models made with ARIS that I would like to import in Archi. I don't have any ARIS license, to I cannot use ARIS functionality to exchange the models.
1- Does anyone have already made some jArchi script to import an ARIS model ?
Hi, it's unlikely that anyone has done (1) as a I suspect it's not a trivial task. For (2) you'll need some JS library to read the XML into some in-memory model similar to the Java JDOM library. Have you found anything yet?
- load the default unpleasant Java DOM libraries (https://docs.oracle.com/javase/tutorial/jaxp/dom/readingXML.html): Java.type(....)
- or load a custom Jar bundling more convenient libraries such as JDOM, DOM4J, etc. (URLClassLoader (https://docs.oracle.com/javase/7/docs/api/java/net/URLClassLoader.html) approach)
If you're more comfortable with Python, you could start with a shell process returning JSON in the standard output and capture that via jArchi (Java process to run Python and grab the output). In a second effort, the code could be ported "relatively easily" for someone familiar to the Aris format and Java programming.
I made some python scripts to parse the Aris AML file and generate an Open File Exchange document.
See on my GIT Repo (https://github.com/xmayeur/archiScript/tree/main/python) the 'parseAML.py' script.
Not yet fully documented, nor implementing all functionality, but it is good enough to import an ARIS model into Archimate Tool.
New version update on 21/01/2021.