Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To enter a business rule on an entity, select the Properties screen for that entity, either by right-clicking on the entity in the diagram and choosing Properties:
REPLACE WITH THIS IMAGE: Images/Business Rules Validation/Entering Business Rules for an Entity.png Image Added 
or by right-clicking on the entity in the repository tree and choosing Properties:
REPLACE WITH THIS IMAGE: Images/Business Rules Validation/Entering Business Rules for an Entity_1.png Image Added 
Choose the Business rules tab.
REPLACE WITH THIS IMAGE: Images/Business Rules Validation/Entering Business Rules for an Entity_2.png Image Added

Icons

Description

REPLACE WITH THIS IMAGE: Images/Common_Icons/addqueryicon.png

Image Added

Click to Add a business rule.

REPLACE WITH THIS IMAGE: Images/Common_Icons/renamequeryicon.png

Image Added

Click to Edit the selected business rule.

REPLACE WITH THIS IMAGE: Images/Common_Icons/copyqueryicon.png

Image Added

Click to make a Copy of the selected business rule.

REPLACE WITH THIS IMAGE: Images/Common_Icons/removequeryicon.png

Image Added

Click to Delete the selected business rule.

In the right pane, enter the details for the business rule. Click OK.
REPLACE WITH THIS IMAGE: Images/Business Rules Validation/Entering Business Rules for an Entity_4.png Image Added

  • The Validation code is a SELECT statement that is run to gather data for validating the business rule. It should only return one row, otherwise only the first row returned will be used.
  • The Expected results are the expected values for the attributes in the row returned by executing the validation code. Each expected result has a name, which is also the name of the attribute being checked, and the expected value for that attribute, which may also be an expression such as value > 3.
  • The Drill down code is a SELECT statement used to show more detail on the business rule data so you can look into why expected and actual results differ.
Note
titleNote

You can use stored queries for validation code and/or the drill down code by clicking

...

the Insert Stored SQL Query

...

 button Image Added next to the respective query editor field. They can also be stored by clicking the

...

respective Store SQL query

...

 button Image Added. Refer

...

to Inserting a Stored SQL Query

...

 and Storing a SQL Query

...

 for details.