how to install/configure jArchi

Started by gmamvura, March 10, 2021, 18:26:18 PM

Previous topic - Next topic

gmamvura

Does anyone here have steps to share on how to install/configure jArchi. I have downloaded the jArchi Generator.

The goal is to draw a pattern in Archi, run a script and get the SQL query that finds all similar patterns in model.

If this has been address let me know where I get read through

Thanks in advance

Phil Beauvoir

Installation instructions for Archi plug-ins are here:

https://www.archimatetool.com/plugins/#installing

And more info at the wiki:

https://github.com/archimatetool/archi-scripting-plugin/wiki

Note that SQL querying is not a part of jArchi, it is part of the HTML report.
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

gmamvura

this is what I get when I try install the JArchi plugin.
Archi-scripting-plugin-master.zip - Is not a Archi plug-in


Phil Beauvoir

It seems you have downloaded the source code. This is for developers.

Please read this about how to get the binary - https://www.archimatetool.com/plugins/#jArchi
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

gmamvura

do I receive separate link if I join the paronage program?

Phil Beauvoir

Quote from: gmamvura on March 10, 2021, 20:24:50 PM
do I receive separate link if I join the paronage program?

Please check your email.
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

gmamvura

after install  and testing first script --Anonymize ---I go these error. why is it going out looking for JS in the web not local machine?

Script Error: java.lang.RuntimeException: java.io.FileNotFoundException: https://raw.githubusercontent.com/oliver-moran/lorem.js/master/lorem.min.js

Phil Beauvoir

Quote from: gmamvura on March 11, 2021, 15:52:52 PM
after install  and testing first script --Anonymize ---I go these error. why is it going out looking for JS in the web not local machine?

Script Error: java.lang.RuntimeException: java.io.FileNotFoundException: https://raw.githubusercontent.com/oliver-moran/lorem.js/master/lorem.min.js

In this example script, there is a dependency on an online JavaScript library at that URL:

load('https://raw.githubusercontent.com/oliver-moran/lorem.js/master/lorem.min.js');

So, it needs a connection to access it.
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

Jean-Baptiste Sarrodie

Hi,

In addition to Phil's response: that's also a good example of loading a lib from the web (not everyone is aware of this capability).

Feel free to download it locally in the same folder as your script and change the call to:

load(__DIR__ + 'lorem.min.js');


For more information: https://github.com/archimatetool/archi-scripting-plugin/wiki/The-Console%2C-Dialogs-and-Other-Utilities#including-other-script-files

Regards,

JB
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate