VJ

Hello ARIS Community,

how can I get the name of the home directory of the current client PC user? The directory name is normally specified in the local environment variables on the client PC.

I tried the following java code in a macro, but it crashed:

var sPath = java.lang.System.getProperty("user.dir");

I don't want to use a static path but an individual one for each user on the client PC to open a personal configuration file by a macro:

var sFilename = "config.xml";
var f = new java.io.File(sPath + sFilename);

Can anyone help me?

Best regards
Volker

by Deleted User
Posted on Sun, 02/27/2011 - 01:10

Unfortunatly, you can't access the 'System' nor 'Runtime' classes from java.lang inside an ARIS report/macro.

Have you checked if the user information is available using, for example, some Context.xxxx method?

 

0
by Volker Jordan Author
Posted on Mon, 02/28/2011 - 08:59

Hello,

yes I looked at ARIS Context.* methods and properties but did not found anything capable. Maybe there is another solution within the ARIS standard functionality...

regards
Volker

0
by Volker Jordan Author
Posted on Wed, 08/31/2011 - 08:34

Hello Ajeya,

 

it works now! Thank you very much!

 

regards

Volker

 

0
by Ajeya M.A
Posted on Wed, 08/31/2011 - 09:52

My pleasure :)

 

Regards,

Ajeya

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