Creating Custom Checks

Users with the Edit Extensions on Web privilege can define custom checks for objects. Custom checks can be used when verifying diagrams (see Verifying Diagrams).

Context

For example, you may want to ensure that all Windows applications included in a specific enterprise architecture diagram are developed in Javascript. In that case, the applications will be first checked for operating system (using a pre-condition), and then all the Windows applications that do not meet the verify expression condition (which is being developed in Javascript) will be reported as non-compliant during model verification.

Procedure

  1. Click Customize in the navigation panel to view the list of extensions.
  2. Click the name of the custom extension you want to edit to open it and list the standard types of objects in this type of model.
  3. Click the object type for which you want to define a custom check to open it in the editor.
  4. In the Custom Check section, click the + button to create a custom check, and enter:

    Property

    Description

    Name

    Specifies the name of the custom check.

    Message

    Specifies the nature of the check done. This message will be displayed in the Errors and Warnings panel (see Verifying Diagrams).

    Verify Expression

    Specifies the expression that must be satisfied to avoid the display of a warning or error.

    Click the Edit Verify Expression tool to specify the expression.

    The following fields are available to specify the expression:
    • Attribute - to select an attribute for which the condition will be evaluated

    • Operator - to select an evaluation operator (possible operators are: Equal, In List, Not In List, Empty and Not Empty)

    • Values - to specify a single value (when using the Equal operator) or a list of values (when using the In List or the Not in List operator)

    Enabled

    Specifies if the custom check is active. Check this box if you want your custom check to be used by the verify model feature.

    Severity

    Specifies whether the check is designated by default as an Error (major problem that stops generation) or as a Warning.

    Pre-Condition Expression

    Specifies one or more initial conditions that must be satisfied before the verify expression is evaluated.

    Click the Edit Pre Condition Expression tool to specify the expressions.

  5. Click Save to save your changes.