Was ist scriptrunner.cfg?

Im folgende Beispiel wird der Report Prozesshandbuch für ein Prozessmodell der Demo-Datenbank United Motor Group mit Script Runner ausgeführt.

Dazu wurden die fett ausgezeichneten Einträge in der Datei <ARIS-Client-Installationsverzeichnis/tools/scriptrunner/scriptrunner.cfg.template angepasst und im Client-Installationsverzeichnis als scriptrunner.cfg gespeichert.

Hinweise zur Parametereingabe werden eingeblendet, wenn Sie auf einen Link klicken.

Nachdem Sie die Beispieldatei scriptrunner.cfg angepasst und im selben Verzeichnis wie die Datei scriptrunner.bat und scriptrunner.sh gespeichert haben, starten Sie scriptrunner abhängig von Ihrem Betriebssystem. Öffnen Sie die Eingabeaufforderung im ARIS-Client-Installationsverzeichnis/tools/scriptrunner und geben für Microsoft® Windows®-Betriebssysteme Folgendes ein:

scriptrunner.bat scriptrunner.cfg

oder für Linux®-Betriebssysteme:

scriptrunner.sh scriptrunner.cfg

Nach Abschluss der Aktion finden Sie die Ausgabedatei im definierten Verzeichnis D:/Evaluations/Reports/example.pdf.

Beispieldatei 'scriptrunner.cfg'

#client home directory (to be changed if needed)

client.home=.

# server to connect to.

scriptrunner.servername=aris3.eur.ad.abc

# port the server is listening

scriptrunner.serverport=80

# to use ssl set to true

scriptrunner.serverssl=false

# tenant to use

scriptrunner.tenant=default

# Username for login. Use the login of the user who executes the report here.

scriptrunner.username=system

# Password for login. Use the password of the user who executes the report here. Can/should be encrypted.

scriptrunner.userpassword={crypted}d12173f23e5f6e5d3cf163169b1068a4

# Database name to login.

scriptrunner.dbname=United Motor Group

# GUID of methodfilter for login. No entry (default) is "entire method".

scriptrunner.methodfilterguid=dd838074-ac29-11d4-85b8-00005a4053ff

# Locale for database login. ISO 639 code for language.

scriptrunner.dblocale=de

# Locale for database login. ISO-3166 code for country (optional).

scriptrunner.dblocale.country=DE

# oem identifier (do not change)

scriptrunner.oemprofile=oem01

# Locale for script stringtable and error messages. ISO 639 code for language.

scriptrunner.guilocale=de

# Locale for script stringtable and error messages. ISO-3166 code for language. (optional)

scriptrunner.guilocale.country=DE

# Script component - id. Default is 'Report' (value = 1). Optional 'static publisher' (value = 10).

# scriptrunner.component=1

# GUID of script to execute.

scriptrunner.scriptid=f1253ea0-1c0f-11dd-3a64-0015582c76ab

# Outputformat 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

scriptrunner.outputformat=9

# path and name of outputfile. Only relevant if outputformat != -1

scriptrunner.outputfile=D:/Evaluations/Reports/example.pdf

# GUID of evaluation filter (optional)

scriptrunner.evaluationfilterguid=

# IDs of objects to start the script on. Separated by ';'

# DB : the script is to be run on a database context (database is specified by srciptrunner.dbname property)

# F:[GUID] : for scripts running on "configuration filter" context a configuration filter is specified by "F:" directly followed by the filter GUID

# G:[OID] : for scripts running on group objects: their OIDs, each preceded by "G:"

# M:[GUID]or[OID] : for scripts running on models: their OID or their GUID, each preceded by "M:"

# O:[GUID]or[OID] : for scripts running on 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=

#...