Generate new macros

You can generate new macros based on the predefined macros for Process Governance.

Prerequisite

You are script administrator for this tenant.

Procedure

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

  2. Right-click the folder Evaluations > Macros > Automation in the Show evaluations Navigation bar.

  3. Click New > Macro Macro. The Script Wizard opens.

  4. Enter a name and, if necessary, a description for the macro.

  5. Click Next.

  6. Enable the Event option.

  7. Click Select event and enable the event for which the macro is to be run.

  8. Click OK.

  9. Click Next.

  10. Retain the default setting User-defined macro.

  11. Click Next.

  12. Specify the relevant settings and click Finish. Script Editor opens.

  13. Right-click in the script background and select Properties.

  14. Click Imported files. The Imported scripts dialog opens.

  15. Enable the check box for the file automationCommon.js.

  16. Click OK.

  17. Copy the GUID, for example, 607c80d0-2a86-11de-5b2d-001e4f3005ad, to use it when creating the script.

  18. Click OK.

  19. Add the following code to the script:

    Automation.runProcess(<sMakroID>);. For <sMakroID>, use the GUID you copied before. Example: Automation.runProcess(607c80d0-2a86-11de-5b2d-001e4f3005ad);

  20. Click Save Save.

  21. Close the script tab.

The macro is now available and can be run via Evaluate > Start macro Start macro (Automation category).