Archi Forum

Archi => General Archi Discussion => Topic started by: tpedot on November 23, 2021, 12:38:26 PM

Title: Validation of a model with a custom rule ?
Post by: tpedot on November 23, 2021, 12:38:26 PM
Hello,
I wonder if it is possible to add a rule to validate a model, how to create such a validation ?

It seems that we could not do this.


I want to reproduce a model which can make some cost calculation like here Fig 1.:
https://fenix.tecnico.ulisboa.pt/downloadFile/1970719973967508/Resumo%20alargardo.pdf (https://fenix.tecnico.ulisboa.pt/downloadFile/1970719973967508/Resumo%20alargardo.pdf)

For the exemple, I want to validate and raise a Warning if an (Business Process for exemple) doesnot have one property (Unit Time Estimate (min)).

How can i do that ?
Title: Re: Validation of a model with a custom rule ?
Post by: Phil Beauvoir on November 23, 2021, 12:43:12 PM
jArchi, the scripting framework for Archi, would probably fulfil your requirements.

See https://github.com/archimatetool/archi-scripting-plugin
Title: Re: Validation of a model with a custom rule ?
Post by: tpedot on November 24, 2021, 14:45:09 PM
Thanks for your feedback.

I saw jArchi and I may consider making a donation. Can you provide an exemple / documentation on how to use it ?

Thanks in advance and thanks for this nice tool.
Title: Re: Validation of a model with a custom rule ?
Post by: Phil Beauvoir on November 24, 2021, 15:25:55 PM
The core documentation is on the wiki:

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

The download comes with some simple example scripts. There are also some tips here in the jArchi sub-forum.

More examples on GitHub:

https://gist.github.com/search?utf8=%E2%9C%93&q=%23jarchi+extension%3Aajs&ref=searchresults  (https://gist.github.com/search?utf8=%E2%9C%93&q=%23jarchi+extension%3Aajs&ref=searchresults)