Use macros

A macro is a script that contains a sequence of statements or declarations. Macros speed up and simplify work by executing frequently-used command sequences with only a single call. For example, you can use macros to automatically run reports or semantic checks.

Macros support you in the automated context-specific execution of comprehensive actions. Use macros to automate actions on the client side. You can only change open models if you use a macro. Usually, each macro command leads to a server call, which in case of complex macros may result in significant runtime delays. In these cases, it is recommended that you write your own report scripts instead of a macro.

ARIS comes with many standard macros. The macros are listed in categories on the Administration > Evaluations Evaluations > Create group Macros tab. If in the General properties dialog of a macro script the Available to users option is selected, the macro can be selected in the Macro Wizard for execution.

Once models have been saved, you can automatically check adherence to corporate consistency rules, for example. Macros also assist you in:

Using event-driven macros (vetoable), you can suppress associated standard functionality. You can define a macro that starts, for example, a semantic check automatically when a user saves a model. The semantic check is triggered by the Model is to be saved (vetoable) event. To suppress the save operation for non-compliant models, you must include the line Context.setProperty("event.veto", "1") into the corresponding statement block. The model is saved only if the semantic check rules are met.You can also start Process Governance processes. Predefined, event-driven macros are available for this. They only need to be linked with an executable process within the Governance Automation Models reference database.

You start macros using either menu items or buttons.

If you are familiar with the JavaScript and ARIS Script programming languages, you can write your own macro scripts or adapt copies of existing standard scripts.

Topics

Run macros

Start a macro based on an event

Organize macros

What is a macro?

What is context-specific evaluation?

ARIS macros