Profile picture for user Waltzing Matilda

We need to track ARIS BA scripts (SAX and Java) execution by users and collect statistics about such events.

ARIS is used by many users simulatneously. Preferable solution - to have a record in the SQL database about user name and parameters (models/groups or what ever).

There is also need for getting report about script names and parameters. Is there any other way but manual to get information about ARIS script author, description?

I have a task to manage and migrate and convert many scripts - from SAX to Java. Is there other way but manual to move scripts from SAX to Java? I heard about script converter - would be handy to automate this task.

Thanks in advance for ideas how this can be achieved.

Sergei.

by Alexander Cherednichenko
Badge for 'Answermachine' achievement
Posted on Mon, 05/31/2010 - 21:18

Сергей, по поводу отслеживания запуска скриптов - ИМХО, проще на арисовском сервере сделать расшареную папку и вести лог (txt, excel), а в скрипты, которые Вы используете добавить стандартный код (это конечно не решит проблему отслеживания запуска предустановленных скриптов).

По поводу конвертера - он криворукий, поэтому можно перенести только максимально примитивные скрипты. Мы сталкивались с проблемой - конвертация кирилицы (в комментах, диалогах, формах и т.д.), многие методы не переносятся и т.п. Что-либо сложное нам пришлось переносить руками.

0
by Milan Slivka
Posted on Mon, 06/14/2010 - 15:41

Hi Sergei, to track scripts you can just simply add to the end of each script piece of code to log each execution: 

var sLogFile = "Aris_" +Context.getScriptInfo(Constants.SCRIPT_VERSION)+ "_script_activity_log.log";
    var oFileToWrite = new java.io.File(Context.getTempPath(),sLogFile);
    var oWriter = new java.io.FileWriter(oFileToWrite, true);
    var sLogMessage = new String(nowStart.getFullYear() + ((nowStart.getMonth()+1) < 10 ? "0"+(nowStart.getMonth()+1):(nowStart.getMonth()+1)) + (nowStart.getDate() < 10 ? "0"+nowStart.getDate():nowStart.getDate()));
    sLogMessage += new String("|" + Context.getScriptInfo(Constants.SCRIPT_NAME));
    sLogMessage += new String("|" + Context.getSelectedPath()+Context.getSelectedFile());
    sLogMessage += new String("|" + ArisData.getActiveDatabase().ActiveUser().Name(g_nLoc));
    sLogMessage += new String("|" + ArisData.getActiveDatabase().Name(g_nLoc));
    sLogMessage += new String("|" + ArisData.getActiveDatabase().ActiveFilter().Name(g_nLoc));
    sLogMessage += new String("|" + ArisData.getActiveDatabase().getDbLanguage().Name(g_nLoc));
    sLogMessage += new String("|" + sStart + "|" + sEnd);
    sLogMessage += new String("|" + sDuration);
    sLogMessage += new String("\n");
    oWriter.write(sLogMessage);
    oWriter.close();

Milan

0
by Sergei Real-Picture Author
Posted on Mon, 06/14/2010 - 16:25

Hi, Milan.

This code is good however it could be exception (file lock) when several users will run the same script simultaneously.

We have hunderds of licenses to run simultaneously and therefore are looking for the registraion of the script execution in SQL database.

Registration in LOG file will require further sych with SQL database and therefore is not the best option so far.

The script log and script execution results will be used to tune up user support and educational courses for ARIS users.

Thanks for the code, pretty usable in case when we will have SQL code for registration.

0
by Martin Schröder
Badge for 'Contributor' achievement
Posted on Fri, 06/18/2010 - 19:29

Hi Sergei,

only two hints (please see ARIS installation&administrarion-guide by IDS for details)

1) if you have configured your Business Server to create an accounting log you will find it in:

    %arishome71%\server\accounting\arisaccountlog.xml

I found that for each execution of a VB script on Business Server a <session> with <clienttype>WIN is logged with time stamps. These sessions stick out if only ABDesigner or Architect Client access the server.

2) for each execution of JavaScripts on a Business Server there will be records of selected options per user in:

%arishome71%\server\templates\scriptservice\internal\ReportRegistry.cfg

Hope it helps, Martin

0
by Sergei Real-Picture Author
Posted on Sat, 06/19/2010 - 15:59

Hi, Martin.

Thanks for the tips - we will try it.

What we are after - registration of the script, user, model and some statistics of the script execution (if script produces any). The statistical data is needed for the purpose to track common errors/issues and tune training towards this issues elimination.

Script registration in the SQL database would be ideal.

Thanks againfor your information.

Sergei

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