Recent posts

#1
General Archi Discussion / Re: Where can I see who create...
Last post by romuald - December 05, 2023, 13:34:25 PM
More elegant script which is working with anything :

//Script to put date of the day in the property "Date de mise à jour"
// and Author in "Auteur"

// Get current date
var currentDate = currentDate || new Date();

let Month = currentDate.getMonth() + 1;
let myName = "Romuald RICHARD";

$(selection).each(function(concept) {
concept.prop("Date de mise à jour", currentDate.getDate() + "/" + Month + "/" + currentDate.getFullYear());
concept.prop("Auteur", myName);
console.log("Date changée pour " + concept.name);
    });

model.save(); // save the model, you can set a short key to CTRL+S
#2
General Archi Discussion / Re: CICD creation of a report ...
Last post by Damounet - December 05, 2023, 09:01:00 AM
Yes I am pretty sure it is in the correct folder, as in the log I print the location of the bash:

+ pwd
/data/jenkins/workspace/workspace/sd_Architecture_Archimate_master
+ ls
?
Dockerfile
Jenkinsfile
config.ini
images
model

The job runs in the root folder of the repository as there is the model & images folder created by Archi.

One thing that is different between the jenkins server and my WSL ubuntu in local, is that the server does not have installed any X related lib and thus does not have any Graphical env configured on the host. I wonder if Docker needs to have and share some of the X libs with the host (the dbus one that is in the error)
#3
General Archi Discussion / Re: CICD creation of a report ...
Last post by Phil Beauvoir - December 04, 2023, 17:04:12 PM
The error message "java.io.IOException: Model was not loaded" seems to suggest a problem here. Are you sure your command line arguments are correct? Did you load a model in the arguments?
#4
General Archi Discussion / Re: Where can I see who create...
Last post by romuald - December 04, 2023, 15:32:31 PM
I use notes in view to have the date and the author or the changer of the view (properties of the view).
I wrote a little script which is updating the properties with the current date and bend it to CTRL+S (the script is also saving the model)

//Script to put date of the day in the property "Date de mise à jour"


model.save(); // save the model, you can set a short key to CTRL+S

// Get current date
var currentDate = currentDate || new Date();

let Month = currentDate.getMonth() + 1;
let myName = "Romuald RICHARD";

try{
var view = selection.filter("archimate-diagram-model").first();

// Create a new note and set its text
view.prop("Date de mise à jour", currentDate.getDate() + "/" + Month + "/" + currentDate.getFullYear());
view.prop("Auteur", myName);
console.log("Date changée pour " + view.name);

}catch(err)
{
var elem = selection.filter("element").first();
// Create a new note and set its text
elem.prop("Date de mise à jour", currentDate.getDate() + "/" + Month + "/" + currentDate.getFullYear());
elem.prop("Mise à jour par", myName);
console.log("Date changée pour " + elem.name);

var view = elem.view;
view.prop("Date de mise à jour", currentDate.getDate() + "/" + Month + "/" + currentDate.getFullYear());
view.prop("Auteur", myName);
console.log("Date changée pour " + view.name);

}
console.log(currentDate.toString());

#5
General Archi Discussion / CICD creation of a report fail...
Last post by Damounet - December 04, 2023, 14:25:14 PM
Hello folks,

I have been using archi for a while and I am currently trying in my new company to industrialize its use by auto generating the html report.

I am using the company build factory going with gitlab / jenkins and I stumble on a wierd error.
I am abviously using WoozyMasta's docker image to achieve this (https://github.com/WoozyMasta/archimate-ci-image) but it does not work on my company's jenkins server. It works localy on my computer though, so I'm sure it's not model related.

I have opened a ticket on Woozymasta's github, but I want to have a better view on the problem and maybe some of you got this issue too.
My post is there : https://github.com/WoozyMasta/archimate-ci-image/issues/19
In summary the image fails when it tries to start archi and get some issue with some dbus things I am not aware nor a specialist of too.

Any help would be greatly appreciated.
Thanks !
#6
General Archi Discussion / Re: Vulnerabilities in Archi
Last post by Phil Beauvoir - December 01, 2023, 20:42:36 PM
Hi, please report the issue here so we can take a look at it:

https://github.com/archimatetool/archi/issues
#7
General Archi Discussion / Vulnerabilities in Archi
Last post by connor.dawson - December 01, 2023, 20:39:42 PM
Hi,

We scanned the archi repository with Mend SCA and found that there are vulnerabilities with the following libraries:
  • jackson-databind-2.9.jar
  • jdom2-2.0.6.jar
  • bootstrap-3.3.2.min.js
  • commons-io-2.6.jar
  • commons-beanutils-1.9.3.jar

Are there plans to update these libraries to fixed versions? Do these libraries pose security risks for Archi users if they are not fixed?

Thank you
#8
General Archi Discussion / Size of a model
Last post by romuald - December 01, 2023, 08:38:52 AM
What is the size of your model (nb elements, relations...)
What is a "big" model?

M model :
1068 elements
2829 relationships
179 views
#9
General Archi Discussion / Re: List of organizations know...
Last post by Alexis_H - November 30, 2023, 07:48:19 AM
Hi,

We, at 'My Money Group' - a French banking group, despite its name ;) - are using Archimate and Archi as our standard architect's toolbox.

Thanks to coArchi, Gitlab CI/CD integration and a growing number of jArchi scripts, we are beginning our journey towards an open-source-based EA repository.

Archi : a great tool + a great community around!

Cheers,
Alexis
#10
jArchi / Re: Working with Collections
Last post by kkosienski - November 29, 2023, 21:39:46 PM
Thank you for the suggestions and code sample.

-Kevin