In the following example, the report Process manual runs with Script Runner for a process model of the United Motor Group demo database.
To do this, the entries in bold in the file ARIS Client installation directory/tools/scriptrunner/scriptrunner.cfg.template have been adapted and saved in the Client installation directory as scriptrunner.cfg.
Information on parameter entry is shown if you click a link.
Once you have adapted the sample file scriptrunner.cfg and saved it in the same directory as scriptrunner.bat and scriptrunner.sh, start scriptrunner according to your operating system. Open the command prompt in ARIS Client installation directory/tools/scriptrunner and enter the following for a Microsoft® Windows® operating system:
scriptrunner.bat scriptrunner.cfg
or for Linux® operating systems:
scriptrunner.sh scriptrunner.cfg
When this action is complete, the output file is available in the directory D:/Evaluations/Reports/example.pdf.
Sample file 'scriptrunner.cfg'
# client home directory (to be changed if required)
# server to connect to
scriptrunner.servername=aris3.eur.ad.abc
# port the server is listening
# to use ssl set to true
# tenant to use
# User name for login. Use the login of the user who runs the report.
# Password for login. Use the password of the user who runs the report. Can/Should be encrypted.
scriptrunner.userpassword={crypted}d12173f23e5f6e5d3cf163169b1068a4
# Name of the database to which to log in.
scriptrunner.dbname=United Motor Group
# GUID of the method filter for login. No entry (default) is "entire method".
scriptrunner.methodfilterguid=dd838074-ac29-11d4-85b8-00005a4053ff
# Locale for database login. ISO 639 code for language.
# Locale for database login. ISO 3166 code for country (optional).
#scriptrunner.dblocale.country=EN
# oem identifier (do not change)
#scriptrunner.oemprofile=oem01
# Locale for script string table and error messages. ISO 639 code for language.
# Locale for script string table and error messages. ISO -3166 code for language. (optional)
scriptrunner.guilocale.country=EN
# Script component - id. Default is 'Report' (value = 1). Optional 'static publisher' (value = 10).
# scriptrunner.component=1
# GUID of script to run.
scriptrunner.scriptid=f1253ea0-1c0f-11dd-3a64-0015582c76ab
# Output format ID, defaults to -1 (no output)
# 0 = RTF
# 2 = Text
# 3 = HTML
# 4 = MS Word
# 5 = MS Excel
# 7 = other
# 8 = XML
# 9 = PDF
# -1 = No output
# Path and name for output file. Only relevant if output format != -1
scriptrunner.outputfile=D:/Evaluations/Reports/example.pdf
# GUID of evaluation filter (optional)
scriptrunner.evaluationfilterguid=
# IDs of objects from which to start the script. Separated by ';'
# DB : the script is to be run from a database context (database is specified by srciptrunner.dbname property)
# F:[GUID]: for scripts running from "configuration filter" context a configuration filter is specified by "F:" directly followed by the filter GUID
# G:[OID]: for scripts running from group objects: their OIDs, each preceded by "G:"
# M:[GUID]or[OID]: for scripts running from models: their OID or their GUID, each preceded by "M:"
# O:[GUID]or[OID]: for scripts running from object definitions: their OID or their GUID, each preceded by "O:"
# examples:
# scriptrunner.scriptinput=DB
# scriptrunner.scriptinput=F:f98555a9-6158-11d4-8582-00005a4053ff
# scriptrunner.scriptinput=G:
# scriptrunner.scriptinput=M:abababab-cdcd-efef-a1a2-b1b33fce23e5;M:ef2579bd-cdcd-efef-a1a2-b1b33fce23e5
# scriptrunner.scriptinput=O:abababab-cdcd-efef-a1a2-b1b33fce23e5;O:ef2579bd-cdcd-efef-a1a2-b1b33fce23e5
scriptrunner.scriptinput=M:bf2a9d60-7cb8-11dc-2729-000bcd0cce4e
# User-defined properties. Can be accessed in script using Context.getProperty("propertyname")
scriptrunner.userproperty.count=0
# as many user-defined properties as specified in scriptrunner.userproperty.count.
# syntax:
#scriptrunner.userproperty1.key=
#scriptrunner.userproperty1.value=
#scriptrunner.userproperty2.key=
#scriptrunner.userproperty2.value=
#...