Profile picture for user celso.mattheus

Simple and maybe dumb question, but I'm beggining to learn the scripting language by myself and couldn't find this anywhere. Is there a console log in Aris Archictech? Like, a window or somewhere where I can, say, write

console.log("hello world")

and it will actually print "hello world"?

by Celso Mattheus Cantanhede Silva Author
Posted on Thu, 08/22/2019 - 22:17

I forgot to mention, my organization is still using Aris 7.2

0
by M. Zschuckelt
Posted on Wed, 08/28/2019 - 17:59

Hello,

although I do not have a 7.2 at my disposal, I assume not much has changed there.

In the debugger you can inspect the variables and define watch expressions.

With Dialogs.MsgBox("Hello world") you can bring up a modal dialog window showing your debug information, which you have to confirm with the OK button before the script continues.

There is no STDOUT stream you can write to and you should not write to the file system of the Business Server. (This is talking about reports, which are executed on the server.) Although in ARIS 7.2 this is sometimes a solution, if you are sitting at the server machine, it probably will not work as soon as you migrate to ARIS 10 (hopefully soon).

Otherwise your script could build a text file during execution and produce it as the report result, if you want to log some lengthy operation. However this competes with your goal of producing a "proper" result file.

0
by Celso Mattheus Cantanhede Silva Author
Posted on Thu, 08/29/2019 - 16:08

Hi!

So I've been using the Dialogs.MsgBox( ), but it felt hacky, so that's why I wanted another way. I'll keep using it, then. Perhaps the debugger can work in some situations, I'll analyze. 

 

Thank you for the answer.

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