You can use various predefined macros for Process Governance to run processes automatically. The following steps are required to use these macros.
Prerequisites
The process to be started by the macro must be transformed into an executable process.
The software service operation types must be linked with a function by the supports connection.
The executable Process Governance process must be assigned to this function.
Step 1: Enable the 'Available to users' attribute
For these predefined macros, the Available to users attribute is disabled by default. Enable this attribute to make a macro available.
Prerequisite
You are script administrator for this tenant.
Procedure
In ARIS Architect, click ARIS > Administration.
Click Evaluations > Macros > Automation in the Navigation bar. The available macros are displayed in the detail view.
Right-click the relevant macro and select Properties.
Enable the Available to users check box in the Release row.
Click OK.
The macro is available and can be run for a model via Evaluate > Start macro (Automation category).
Step 2: Generate executable process
Step 3: Link predefined macro with a Process Governance process
For each predefined macro, an object of the Software service operation type type exists in the Macro library in the reference database Governance Automation Models. This database is installed along with ARIS Architect. In each software service operation type, the Script ID attribute is set to the GUID of the relevant macro (attribute type group Application system type > Process automation). This establishes the connection between the predefined macro and the software service operation type. To activate a macro, the corresponding software service operation type must be linked with the Process Governance process.
Procedure
Open the Macro library model (Main group > Libraries > Macros) in the reference database Governance Automation Models.
Insert an object of the Function type with the Detailed task symbol type in the Macro library model.
Draw a supports connection from the Software service operation type object type that is to trigger the relevant macro to the previously inserted function.
Assign this function the generated BPMN diagram for the process that is to be started by the macro.
Click Save.
As soon as you trigger the event that is specified in the macro (Properties > Context > Select event) the macro runs and starts the corresponding Process Governance process.
Example
Once you have triggered the Delete action for a model, the macro Model is to be deleted runs automatically. Before the model is deleted, the macro triggers the linked Process Governance process, which checks whether this is a released model, for example. If yes, the model is deleted.