ARIS Script is based on the JavaScript programming language. It contains additional objects and methods that you need for writing scripts. Depending on whether you define a macro rule, a semantic check rule, or write a report script, you must use the designated methods.
The JavaScript standard is specified in the ECMAScript language specification. An engine frequently used for JavaScript is Mozilla Rhino. While JavaScript language is to be distinguished from Java language, the Rhino JavaScript engine is implemented in Java. The current ARIS version uses Mozilla Rhino 1.7.7. There is no strict definition for the supported ECMA version. The Rhino engine supports JavaScript 1.7. Rhino 1.7.7 used by ARIS additionally supports features from JavaScript 1.8.x, especially the JSON object that is part of ECMA 5. Rhino 1.7.7 does not support ECMA 6.
To use your own allowed Java packages in an ARIS report, add the jar file to the related script category or the Common files folder and force the script to import this file during runtime. Then you can use the classes from this jar file as any other class, for example, var x = new packagename.classname(xyz).
To obtain information on ARIS Script commands, open a script, move the mouse pointer to a command in the script code, and press the F1 key.
You can also open ARIS Script via Show help > ARIS Script.
Further information on JavaScript is available at http://www.ecma-international.org/publications/standards/Ecma-262.htm.
If you need additional evaluation scripts, you can create report output in the design view. If you are familiar with the JavaScript and ARIS Script programming languages, you can write your own report scripts or adapt copies of existing standard scripts.
Further information and scripting tutorials are available in the ARIS Community at: