How to use individual Java classes in ARIS scripts?
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).
In the current <_a_> version, some Java classes cannot be used, such as java.lang.System, java.lang.Runtime, java.lang.ClassLoader, andall internally used ARIS classes.
If you use a report in ARIS Enterprise or ARIS Advanced, using external classes is only allowed if the class is contained in one of the following packages. From these packages, the classes listed as not allowed cannot be used:
Allowed Java classes | Not allowed |
|---|---|
java.awt | java.awt.Desktop java.awt.GraphicsDevice java.awt.SystemTray java.awt.Toolk |
java.awt.font | |
java.awt.geom | |
java.awt.image | |
java.io | java.io.File java.io.FileInputStream java.io.FileOutputStream java.io.FileReader java.io.FileWriter java.io.FilePermission java.io.RandomAccessFile java.io.RandomAccessFile |
java.awt | java.awt.Desktop java.awt.GraphicsDevice java.awt.SystemTray java.awt.Toolkit java.awt.font java.awt.image |
java.io | java.io.File java.io.FileInputStream java.io.FileOutputStream java.io.FileReader java.io.FileWriter java.io.FilePermission java.io.FileDescriptor java.io.PrintStream java.io.PrintWriter java.io.RandomAccessFile |
java.lang | java.lang.Class java.lang.ClassLoader java.lang.Compiler java.lang.Module java.lang.ModuleLayer java.lang.Package java.lang.Process java.lang.ProcessBuilder java.lang.Runtime java.lang.RuntimePermission java.lang.StackWalker java.lang.System java.lang.Thread java.lang.ThreadGroup java.lang.ThreadLoca |
java.lang.ref | |
java.math | |
java.nio | |
java.nio.charset | |
java.sql | |
java.text | |
java.time | |
java.time.chrono | |
java.time.format | |
java.time.zone | |
java.util | java.util.Scanner java.util.ServiceLoader |
java.util.regex | |
javax.ws.rs | |
javax.imageio | |
javax.xml | |
javax.xml.parsers | |
javax.xml.xpath | |
org.xml.sax | |
javax.crypto.spec | |
org.apache.commons.codec.digest | |
org.apache.pdfbox.pdmodel | |
org.apache.commons.text | |
org.apache.commons.text.translate | |
org.jdom2 | |
org.jdom2.filter | |
org.jdom2.output | |
org.jdom2.input | org.jdom2.input.SaxBuilder |
org.jdom2.xpath | |
org.apache.poi and its sub-packages |
If your ARIS installation is a self-hosted environment (on premise) and want to , your ARIS administrator can provide them using the ARIS Server Administrator command: set abs.report.allowGenericClassAccessInScripts true (see Technical Help).
Allowed Java classes | Not allowed |
|---|---|
java.awt | java.awt.Desktop java.awt.GraphicsDevice java.awt.SystemTray java.awt.Toolk |
java.io | java.io.File java.io.FileInputStream java.io.FileOutputStream java.io.FileReader java.io.FileWriter java.io.PrintStream java.io.PrintWriter java.io.RandomAccessFile |
java.lang | java.lang.ClassLoader java.lang.Thread java.lang.System java.lang.Runtime |
java.lang.ref | |
java.math | |
java.text | |
java.time | |
java.util | |
javax.imageio | |
javax.xml | |
javax.xml.xpath | |
org.jdom | |
org.jdom2 |