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 EPC is selected so that the macro starts when a model of the EPC type is saved.
Prerequisite
You have the Script administrator function privilege for this tenant.
Procedure
Click ARIS > Administration .Prerequisites
You have selected the appropriate perspective in the Perspective Wizard so that all relevant folders are displayed on the Administration tab. You have selected the Configuration & Administration working environment in the Perspective Wizard. You have the required privileges for the different tasks. The various privileges are listed in the procedure descriptions below. 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 is closed. Right-click the Model field and click Deselect all . Navigate to the EPC 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 EPC context. The macro starts when a model of the EPC type is saved.
See also
Start a macro based on an event