Assign a macro to an event
You can assign a macro to an event. If the event occurs, the macro is started.
This example describes how to assign the Output model information macro to the Output model information report. In the example, the macro is assigned to the Model saved event and the context Event-driven process chain is selected so that the macro starts when a model of the Event-driven process chain type is saved.
Prerequisite
You have Administrator privileges.
In ARIS Advanced Architect, click ARIS >
Administration.Click
Evaluations >
Macros.Right-click
Macros > New >
Category. The Create Category dialog opens.Enter Model operations.
Click OK.
Right-click
Model operations > New >
Macro. The Script Wizard opens.Enter the name Output model information.
Enter the description Generates the "Output model information" report after the model is saved.
Click Next. The Context page of the Script Wizard opens.
Activate the Event option button.
Click Select event. The corresponding dialog opens.
Scroll down to the Model saved event, activate the preceding check box, and click OK. The Select event dialog closes.
Right-click the Model field and click Deselect all.
Navigate to the Event-driven process chain entry and activate the preceding check box.
Click Next. The Contents page of the Script Wizard opens.
Activate the The macro runs this report option button.
Click the Report field and select Output model information.
Click Next twice, and then click Finish.
The macro is assigned to the Model saved event in the Event-driven process chain context. The macro starts when a model of the Event-driven process chain type is saved.