Hi All,
does anyone know how to make a bat file for executing an ARIS script using scriptrunner, I have done the modification in the "scriptrunner.cfg.template" file (PFA, have converted to notepad file for attaching purpose). I am struggling to make a bat file so that it can be scheduled using windows scheduler and the ARIS script is executed as per the schedule.
Any hints or lead for the above are welcomed. :)
Thanks & regards
Sumeet Satwani
Hi Sumeet,
there are no secrets to do that...
1st. You should create the Configuration file specific for your script...
( I saw in your cfg that the script is the 46e7d00-2ac2-11e5-51fa-00155d036424 , but I thing your forgot to indicate on line 80: scriptrunner.scriptinput=DB)
Besides that, you need the batch file that calls the scriptrunner with the configuration file as parameter...
Example:
<code>
@echo on
REM **********************************
REM *** Start ARIS Server Script ***
REM **********************************
echo %DATE% - %TIME% - Starting ScriptRunner.BAT
REM *************************************************************************
REM *** Call of ARIS Script Runner for Configuration file %1
REM *************************************************************************
echo %DATE% - %TIME% - Call of ARIS ScriptRunner for Configuration file %1
SET JAVA_HOME=C:/Program Files/Java/jdk1.8.0_40 REM Specify your JAVA_HOME path
"%JAVA_HOME%/bin/java" -cp ./lib/*; com.aris.modeling.client.scriptrunner.AScriptRunner %1
</code>
then you schedule it on Windows Task Scheduler with BATFile CFGFile
Hope this helps.
José LOURO
Hi,
I tried your instruction, José. Unfortunatelly Igot an error. I think the problem is a missing class.
I called the cfg-file:
C:/SoftwareAG/ARIS9.8/server/jre/bin/java.exe" -cp ./lib/*; com.aris.modeling.client.scriptrunner.AScriptRunner Arisscriptrunner_dv.cfg
and got the Error:
Could not find or load main class com.aris.modeling.client.scriptrunner.AScriptRunner
Can You help me?
Many Thanks in Advance
Dieter