MP

I need to read external files within an ARIS script. The only ways to this I know are:

  1. Read file form LOCATION_COMMON_FILES (batch mode)
  2. Read file from a generic folder (generic path of my computer), using Dalogs.Browseforfiles (interactive mode).

Well, but I need to read file that could be in a generic folder in batch mode and i didn't be able to do it, I don't know even if it is possible. Does anyone know it?

 

Maggiù Pennarola

by Rupesh Shrestha
Posted on Mon, 06/21/2010 - 13:59

Maggiu,

There is a method in ARIS API to read external files. I have used it before. Something in the line of getFile(xx). Have a look into the ARIS method.

Don't know the exact method name.

Regards,

Rupesh

0
by Sergei Real-Picture
Posted on Fri, 07/16/2010 - 05:31

Hi.

One day I published code how to read text files and think this will lead to discussion.

But it looks like forum moderators like to talk to themselves and this thread was immediatelly closed for unknown reason. Looks like there is no much desire to spread information how to use ARIS scripts.

Just a reminder, how you can read files:

    var BATC_HFILE = "c:\\temp\\aris_test1.bat"

    Dialogs.MsgBox("Test for the external program execution.\nRunning batch file:\n" + BATC_HFILE, Constants.MSGBOX_BTN_OK, "ARIS V7 TEST");

   var process = Context.execute(BATC_HFILE);

   var inReader = new java.io.BufferedReader(new java.io.InputStreamReader(process.getInputStream()));

    var sResult = "";

    var text;

    while((text = inReader.readLine()) != null)

    {

        sResult += text + "\n";

    }

    process.waitFor(); //ends when process terminates

   Dialogs.MsgBox("Test for the external program execution\n" + sResult, Constants.MSGBOX_BTN_OK, "ARIS V7 TEST");

0
by Allen V.
Posted on Thu, 02/16/2012 - 21:14

Hello,

I realize this thread is old, but how can I use this to read a file from a network share like \\server\file.xls ?

 

Thank you,

Allen

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