ARIS User Group Deutschland (German only)
Register
ARIS Process Mining in action - Live Demo
Register
AGNL Thema-sessie Architectuur (Dutch only)
Register

View all
EY

Hi, 

I use a report to create some .png files of models. I drop theses images on the server at "users4/bpm00/" for use them in a web publisher.

All reports run on "users/bpm00/bin/server.524795/temp" and during the running I want to check if all images ( at "users4/bpm00/" ) are good or not ...

So I want to read the content of the folder "users4/bpm00/" and have a string array. therefore I'll be able to say if any images miss in the folder.

Anyone can help me for reading this folder on server? 

Best regards,

by Thierry Caro
Posted on Thu, 01/02/2014 - 17:35

Hello

Maybe this can help: from an ARIS script, you can execute a .bat file with "Context.execute" to look at your images and do some checks.

Example:

    var process = Context.execute("\"d:\\program files\\program.exe param1 param2\"");
    var inReader = new java.io.BufferedReader(new java.io.InputStreamReader(process.getInputStream()));
    // read all chars from the stream and concatenate them
    var sResult = "";
    var text;
    while((text = inReader.readLine()) != null)
    {
        sResult += text;
    }
    process.waitFor(); //ends when process terminates
0

Featured achievement

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