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.
Ilya Seletkov on
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.