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