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.

The administrator roles described in the following are defined via various privileges at the server and database level. Depending on the roles assigned to the administrators they can carry out specific functions.

superuser

The user superuser is created automatically. By default, this user is assigned the User management, License management, and Configuration administrator function privileges. This user can also enable this function privilege for other users. Users of the superuser type do not use up a license. They manage the system administration, but cannot use ARIS products due to license restrictions. The default password is superuser. You should change the default password to prevent unauthorized access. The password of the superuser is very important, as it is the only user who cannot be deleted. You can change all user data except for the user name. The superuser can recreate the other default users (system, arisservice, guest) if they were deleted.

system

The system user system assumes the administrator role of the system administrator and has all function and access privileges in all databases of a tenant. Authorized persons can use this emergency user to log in to any database, even if you are using an external system, such as LDAP, for authentication.

The name system cannot be changed. The System user check box for this user (Function privileges properties page in ARIS Architect) cannot be disabled either. You should immediately change the password manager to prevent unauthorized access.

To avoid problems, you should create additional system users. Having more than one system user can avoid problems, for example, if one system user has forgotten his password. If you forgot the passwords of all your system users, the full range of functions is no longer available and full data access is no longer possible.

The following administrator roles are defined:

Database administrators

Database administrators require the Database administrator function privilege in ARIS Administration. Users with this role have all function and access privileges and can edit data of all databases of the client.

Database administrators perform the following tasks at the server level:

Users with defined function privileges can perform additional actions at the database level.

Configuration administrators

A Configuration administrator requires the Configuration administrator function privilege in ARIS Administration.

They perform the following tasks:

Script administrators

Script administrators require the Script administrator function privilege in ARIS Administration.

Script administrators perform the following tasks:

Analysis publisher

Analysis publishers require the function privilege of the same name in ARIS Administration.

Analysis publishers perform the following actions:

Analysis administrators

Analysis administrators require the function privilege of the same name in ARIS Administration.

Analysis administrators perform the following actions:

Procedure

  1. In ARIS Architect, click ARIS > Show Administration Administration.

  2. Click Evaluations Evaluations > Group Macros.

  3. Right-click Group Macros > New > Group Category. The Create Category dialog opens.

  4. Enter Model operations.

  5. Click OK.

  6. Right-click Group Model operations > New > Macro Macro. The Script Wizard opens.

  7. Enter the name Output model information.

  8. Enter the description Generates the "Output model information" report after the model is saved.

  9. Click Next. The Context page of the Script Wizard opens.

  10. Activate the Event option button.

  11. Click Select event. The corresponding dialog opens.

  12. Scroll down to the Model saved event, activate the preceding check box, and click OK. The Select event dialog is closed.

  13. Right-click the Model field and click Deselect all.

  14. Navigate to the EPC entry and activate the preceding check box.

  15. Click Next. The Contents page of the Script Wizard opens.

  16. Activate the The macro runs this report option button.

  17. Click the Report field and select Output model information.

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