scriptrunner.cfg について

次の例では、「プロセス マニュアル」レポートにより「ユナイテッド・モーター・グループ」デモ データベースのプロセス モデルに対してスクリプトが実行されます。

これを実行するために、ARIS クライアント インストール ディレクトリ/tools/scriptrunner/ の「scriptrunner.cfg.template」のエントリが変更され、クライアント インストール ディレクトリに scriptrunner.cfg として保存されています。

リンクをクリックすると、パラメータ エントリに関する情報が表示されます。

サンプル ファイルの scriptrunner.cfg を変更し、scriptrunner.bat と scriptrunner.sh と同じディレクトリに保存したら、オペレーティング システムに応じた方法で scriptrunner を起動します。ARIS クライアント インストール ディレクトリ/tools/scriptrunner でコマンド プロンプトを開きます。Microsoft Windows オペレーティング システムの場合、次のように入力します。

scriptrunner.bat scriptrunner.cfg

Linux オペレーティング システムの場合は、次のように入力します。

scriptrunner.sh scriptrunner.cfg

このアクションが完了すると、D:/Evaluations/Reports/example.pdf ディレクトリで出力ファイルが利用できます。

サンプル ファイル「scriptrunner.cfg」

# client home directory (to be changed if required)

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

# User name for login.Use the login of the user who runs the report.

scriptrunner.username=system

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

scriptrunner.dblocale=en

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

scriptrunner.guilocale=en

# 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

scriptrunner.outputformat=9

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

#...