Dans l'exemple suivant, le rapport Manuel de processus est exécuté avec Script Runner pour un modèle de processus de la base de données de démonstration United Motor Group.
À cet effet, les entrées en gras dans le fichier <Répertoire d'installation du client ARIS/tools/scriptrunner/scriptrunner.cfg.template ont été adaptées et enregistrées sous scriptrunner.cfg dans le répertoire d'installation du client.
Pour afficher des informations sur la saisie des paramètres, cliquez sur un lien.
Une fois que vous avez adapté le fichier scriptrunner.cfg, puis que vous l'avez enregistré dans le même répertoire que les fichiers scriptrunner.bat et scriptrunner.sh, lancez scriptrunner selon votre système d'exploitation. Ouvrez l'invite de commande dans le répertoire d'installation du client ARIS/tools/scriptrunner, puis saisissez ce qui suit sur les systèmes d'exploitation Microsoft® Windows® :
scriptrunner.bat scriptrunner.cfg
ou pour les systèmes d'exploitation Linux®:
scriptrunner.sh scriptrunner.cfg
Au terme de l'action, le fichier de sortie se trouve dans le répertoire défini D:/Evaluations/Reports/example.pdf.
Fichier d'exemple 'scriptrunner.cfg'
#client home directory (to be changed if needed)
# server to connect to.
scriptrunner.servername=aris3.eur.ad.abc
# port the server is listening
# to use ssl set to true
# tenant to use
# Username for login. Use the login of the user who executes the report here.
# 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 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 stringtable and error messages. ISO 639 code for language.
# Locale for script stringtable 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 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
# 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.
# syntaxe :
#scriptrunner.userproperty1.key=
#scriptrunner.userproperty1.value=
#scriptrunner.userproperty2.key=
#scriptrunner.userproperty2.value=
#...