Profile picture for user nivas4310

Hi All, 

Can someone help me to run a script using scheduler in ARIS? We have created a customized script to import xml data into ARIS Database. The xml will be stored in the server in some location (ex : D:\XML\test.xml). 

How can I copy this xml data to ARIS and import it into DB using the customized script?

Thanks & Best Regards,

Srinivas.

by Ilya Seletkov
Posted on Mon, 01/13/2014 - 07:48

Hi!

1. Write script, that manualy started and manualy select xml file.

2. Add reading of your custom script property, "StartByScriptRunner", for example. Script have to change source file selection depending on it.

3. Add reading of yourcustom script property, "SourceFile", for example. Script have to read bytes from this file.

4. In configuration file ScriptRunner.cfg set values for your properties.

5. Use java.io.file + ByteArrayInputStream to get bynary array of file which located on server side, custom directory.

6. Use Context.getXMLParser() to get xml reader class from bynary array.

7. Add command "server home/scriptrunner.bat server home/scriptrunner.cfg" to your scheduler.

Hope, this helps.

0
by Srinivas CH Author
Posted on Thu, 02/06/2014 - 07:53

Hi IIya,

I have done all the steps which you have mentioned here and everything works well. Now only problem I am facing is with the "Text.xml" 

I have created a scheduler to convert the XML(which we are receiving from other application) to AML by using XSLT . After this the output AML format which we called in this scenario as "Text.xml" will be stored in one of the "Reports" folder in server. And then the import script will import the AML data to ARIS database. 



I can see the "Text.xml" file is existing in folder called "Import Scripts" from server side after we run the scheduler, However when I checked the same xml in ARIS Scripts module I was not able to find it. What could be the reason? Vice versa is happening, I mean If I copy the same xml in ARIS script modules under "Import Scripts" folder it is reflecting in server where ARIS is installed.

Thanks in advance.

BR/Srinivas.

0

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • CR
  • BH
  • Profile picture for user Ivan.Ivanov.softwareag.com
  • Profile picture for user mscheid
  • MS
  • 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