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.
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"
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