Profile picture for user sumeet_satwani

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

File attachments
by Jose Louro
Posted on Mon, 09/03/2018 - 14:13

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

0
by Dieter Viehmann
Posted on Thu, 11/29/2018 - 13:38

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

 

0

Featured achievement

Genius
You like to help others solve their problems by answering questions.
Recent Unlocks
  • KF
  • KH
  • RG
  • Profile picture for user Vee_ARIS
  • Profile picture for user smarty
  • PacMan

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock