KM

Good day,

We have a macro that does the following:

- A user edits and saves the models

- Macro is then triggered to check warnings and errors

- If there are warnings and errors, the model will not be saved.

 

We would like to know if the macro can be executed in ARIS Connect or there are other alternatives in achieving the same task.

 

by Armin Nosbüsch
Posted on Thu, 02/03/2022 - 11:59

To use the marco there are a few things to consider:

1) Pure macro programming cannot be done in Connect. It basically works like this, that a macro calls a report-script and the report-script performs the checks.

2) You should use the event "Model is to be saved (vetoable)" instead of the event "Model saved", because otherwise model has already been saved before your checks will start.

=> see screenshot "macro-events.png"

 

3) You need to define a "veto" in the macro and only save the model (explicit command) in report script if your checks were all successful. Please note: Veto will executed always, so you need to handle the save operation in report.

=> see screenshot "veto-option.png"

 

 

1
by Nikola Dlaka
Posted on Tue, 10/04/2022 - 13:53

Hi Armin,

Thanks a lot for the info! I've came to a similar conclusion. I have a need to block model saving in some cases, but in some let the event happen. Of course, it needs to run in ARIS Connect Desiger too.

But, how do you save a model using the Report?

In the Macro it's easy of course using the Designer object.

Thanks upfront!

Nikola

0

Featured achievement

Genius
You like to help others solve their problems by answering questions.
Recent Unlocks
  • KF
  • KH
  • RG
  • Profile picture for user Vee_ARIS
  • Profile picture for user smarty
  • 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