Naming standards - Domain Model

Check ID
DOM_0007

Category

Standards

Summary

This check will compare the name of your domain model elements to the naming standards you set. By default the Mendix Best Practices for Developers are used.

Options

This is a complex check that has many different options. See the tables below for all available options. In all cases where a name format is specified the following configuration options apply: - Use a regex in the format supported by the Mendix isMatch() string function. - In some cases (described in the table below) additional variables may be used such as %UserRole%, %EntityName%, %AttributeName%, etc. - In all cases where a regex is used as an option, if you leave it empty the check will be ignored.

Pass

The name of the element matches your standard.

Fail

The name of the element does not match your standard.

Domain Model

Option Name
Details

Association Names

If TRUE, associations should contain the name of the associated entities. Default: TRUE.

Attribute Names

If TRUE, attributes names should not start with their entity name. Default: TRUE.

Calculated Attribute Microflow

Regex to match calculated attribute names. The variables %EntityName% and %AttributeName% may be used. Default: CAL_%EntityName%_%AttributeName%

Entity Names

If TRUE, entity names should be unique across the project. Default: TRUE.

Event Handlers

Option Name
Details

Before Commit

Regex to match the event handler. The variable %EntityName% may be used. Default: BCO_%EntityName%

After Commit

Regex to match the event handler. The variable %EntityName% may be used. Default: ACO_%EntityName%

Before Create

Regex to match the event handler. The variable %EntityName% may be used. Default: BCR_%EntityName%

After Create

Regex to match the event handler. The variable %EntityName% may be used. Default: ACR_%EntityName%

Before Delete

Regex to match the event handler. The variable %EntityName% may be used. Default: BDE_%EntityName%

After Delete

Regex to match the event handler. The variable %EntityName% may be used. Default: ADE_%EntityName%

Before Rollback

Regex to match the event handler. The variable %EntityName% may be used. Default: BRO_%EntityName%

After Rollback

Regex to match the event handler. The variable %EntityName% may be used. Default: ARO_%EntityName%

Last updated