On the Actions tab page it can be specified which action(s) should be taken for shapes that failed the check. Several actions can be specified for the same rule. An action can be defined as a PML macro which can be any operation to be executed on a DB element connected with a shape.
In addition it is possible to select a number of actions from the library. They can be added/removed by clicking Add action/Remove Action. Actions are executed in order or appearance on the list. Move up/down link labels allow to re-order them according to needs.
Similarly to the checks, actions are also pre-defined in Diagrams Consistency Rules Library, with the possibility to add more. To add a custom action a class needs to be defined implementing IDiagramsRulesActon specified in Aveva.Diagrams.DiagramsRules in
Aveva.Diagrams.dll. To be automatically picked up, the class defining check should be placed in a dll named
*ConsistencyRulesLibrary.dll.
On the Action tab page also the severity of rule and message to be added to the
Consistency Check Result window can be specified. The severity can be as follows:
And the message can be any text which will be visible in the Consistency Check Result window if a shape fails the check. The severity is also mapped to the window: