Profile picture for user nivas4310

Hi All,

We got a requirement to integrate between two applications, in that one application is using ARIS as it backend. We will receive the data from other application in XML format. What I need to do here is to convert the XML to AML and import it into ARIS Database.

For this I have written an XSLT for conversion of XML to AML and this should run on a daily basis, for that I have created a scheduler and the converted xml will be stored in one of the "Reports" folder in server. After that the import script will run and parse this xml and stores the data into ARIS database.

The problem here I am facing is after conversion the xml is stored under "Report" folder in server say for example the folder is "Import Scripts". Now when I check the same xml from ARIS in Script module under reports in "Import Scripts" folder I didnt see any "Text.xml" located there. What could be the issue? Does anyone faced similar issue before? Please let me know asap.

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

BR/Srinivas.

by Torsten Haase
Posted on Tue, 02/18/2014 - 08:39

Hi Srinivas,

it is generally not a good idea to try to copy files into/from the ARIS server path structure. If you are using ARIS 9, this will not work at all because the scripts you see in Business Architect are stored inside a database and not in the file system anymore.

If you need to store them on the server file system and if you are sure you are really in a single-server scenario, you can store the XML file on a specific place on the server (for example the TEMP directory). Then you can access this file from within a report using Context.getFile or by using Java file streams.



BR, Torsten

0
by Srinivas CH Author
Posted on Tue, 02/18/2014 - 08:57

In reply to by thaase

Hi Torsten,

Thanks for the answer. I am not copying files in Business Architect, Actually we have created a scheduler which runs on daily basis and it stores the converted XML to Server (in my case it is stored in "Old Reports" folder). And in the same folder I have my import script which will take care of parsing the xml and stores the data into database.

Now after scheduler runs I can see "Text.xml" in server under directory, however the same is not reflecting in Business Architect in Reports module under "Old Reports" folder, so the importing process is now halted. Below is the line of code I used earlier for getting the file:

var importFile = Context.getFile("Text.xml", Constants.LOCATION_SCRIPT);

 

Please check the above images, Many thanks in advance for your answers.

Thanks & Best Regards,

Srinivas.

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

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