MP

Hi,

We are working on compiling a list of all the ARIS scripts that are available in our system, including data such as script name, description, context, output formats, etc. 

Is it possible to access this data and generate a report on this through scripts instead of looking at the properties of each script manually? A script for scripts so to speak? I can't find any obvious methods for this looking through the Help, but hopefully something like this might be hidden in there somewhere? 

UPDATE

I stumbled upon this method in the help: Context.getScriptInfo ( int p_nScriptInfoId )

Is this something that could be used for this purpose, and if so how? Anyone know? 

Thanks.

Mattias

by Amol Patil
Posted on Wed, 05/23/2012 - 19:09

Hi Mattias,

Yes, Use the Constants starting with

Constants.SCRIPT_*

in the method you found.

Regards,

Amol Patil

0
by Mattias Palm Author
Posted on Thu, 05/24/2012 - 12:11

Hi Amol,

Thanks. As I understand it, however, this only works for the script that is currently being run, correct? We need to loop through all the scripts we have (without running them, just looking at their properties) to get information about them. Do you know if this is possible to do?

Regards,

Mattias

0
by Amol Patil
Posted on Thu, 05/24/2012 - 16:56

Hi Mattias,

Upto my knowledge, there is not any straight way to get information for other scripts,

In this case you will have to read the files (.loc, .info) located at

"<INSTALL PATH>\ARIS7.2\server\templates\scriptservice\Report"

through your ARIS script.

Have a look at those files, you would get what you need there.

Regards,

Amol Patil

0
by Rick Beddoe
Posted on Mon, 06/11/2012 - 23:00

Mattias,

If you are comfortable with vbscript or possibly .NET, you can parse the .info and .loc files for information.

I am currently working on a version control application in .NET that parses these files and displays them in a tree structure. The application will also assign version information to custom built scripts.

Cheers,

Rick Beddoe

Cargill Aris Technical Analyst

Minneapolis, MN, USA

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