Recent posts

#1
General Archi Discussion / Re: Archi 5.4 beta
Last post by Phil Beauvoir - July 09, 2024, 11:15:50 AM
And...

Archi 5.4 Beta 3 is now available.

(A few more internal Eclipse bugs fixed)

Cheers,

Phil

#2
jArchi / Re: Switch direction of (a) co...
Last post by Phil Beauvoir - July 08, 2024, 08:56:30 AM
Assuming you have a connection selected in the UI:

var relation = selection.first().concept;
var target = relation.target;
relation.target = relation.source;
relation.source = target;

Phil
#3
jArchi / Switch direction of (a) connec...
Last post by JoCriSem - July 08, 2024, 07:55:03 AM
Anyone has a script to switch the direction of selected connections or can tell me how to do that?
Thanks.
#4
jArchi / Re: Import elements/properties...
Last post by pmduque - July 04, 2024, 17:19:26 PM
That was it!!! Thanks!

Actualy I was having problems in other modules that are now solved!
#5
General Archi Discussion / Re: How to create Business_Cap...
Last post by Xiaoqi - July 03, 2024, 08:02:48 AM
Good suggestion, I will apply this into the model, thanks
#6
General Archi Discussion / Re: How to create Business_Cap...
Last post by smileham - July 02, 2024, 16:48:40 PM
I'd be tempted to suggest that tge "Policy Management" is a "Specialization" of "Contract Management"
#7
jArchi / Re: Single View 2 Single HTML ...
Last post by FunkyArchitect - July 02, 2024, 14:35:03 PM
Nice!
#8
jArchi / Re: Import elements/properties...
Last post by Phil Beauvoir - July 02, 2024, 13:15:12 PM
Since jArchi 1.6 there is support for node JS modules:

https://github.com/archimatetool/archi-scripting-plugin/wiki/Using-Node.js-modules

In the case of the code above replace this line:

load(__DIR__ + 'xlsx.full.min.js');
with this:

const XLSX = require(__DIR__ + "xlsx.full.min.js");
(Change the path to the file as required)

Or you can use the old behaviour with an option in Archi's Scripting Preferences to enable/disable CommonJS support if you wish.
#9
jArchi / Re: Import elements/properties...
Last post by pmduque - July 02, 2024, 12:44:50 PM
I tried the script with GraalVM but I keep getting the following error:
org.graalvm.polyglot.PolyglotException: TypeError: (intermediate value).read is not a function
   at <js>.:program(test-excel.ajs:10)
   at <js>.:program(<eval>:1)
   at org.graalvm.polyglot.Context.eval(Context.java:399)
   at com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.eval(GraalJSScriptEngine.java:478)
   at com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.eval(GraalJSScriptEngine.java:446)

It's working with Nashorn ES6 though.
#10
General Archi Discussion / Re: Archi 5.4 beta
Last post by Xiaoqi - July 02, 2024, 04:20:59 AM
nice to know, will try then