Archi Forum

Archi Plug-ins => jArchi => Topic started by: gwaters22 on March 10, 2021, 18:26:18 PM

Title: how to install/configure jArchi
Post by: gwaters22 on March 10, 2021, 18:26:18 PM
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
Title: Re: how to install/configure jArchi
Post by: Phil Beauvoir on March 10, 2021, 18:30:34 PM
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.
Title: Re: how to install/configure jArchi
Post by: gwaters22 on March 10, 2021, 18:36:32 PM
this is what I get when I try install the JArchi plugin.
Archi-scripting-plugin-master.zip - Is not a Archi plug-in

Title: Re: how to install/configure jArchi
Post by: Phil Beauvoir on March 10, 2021, 18:42:27 PM
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
Title: Re: how to install/configure jArchi
Post by: gwaters22 on March 10, 2021, 20:24:50 PM
do I receive separate link if I join the paronage program?
Title: Re: how to install/configure jArchi
Post by: Phil Beauvoir on March 10, 2021, 23:06:09 PM
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.
Title: Re: how to install/configure jArchi
Post by: gwaters22 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
Title: Re: how to install/configure jArchi
Post by: Phil Beauvoir on March 11, 2021, 16:50:56 PM
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.
Title: Re: how to install/configure jArchi
Post by: Jean-Baptiste Sarrodie on March 11, 2021, 18:58:21 PM
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