Chapter 3 Using Business Rules in a CDM


Attaching an expression to a business rule in a CDM

A business rule typically starts out as a description. As you develop your model and analyze your business problem, you can complete a rule by adding a technical expression. The syntax of expressions depends on the target database.

Each business rule can include two types of expression:

Only the server expression can be generated to a database. You can generate server expressions as check parameters if they are attached to tables, domains, or columns.

A client expression is used mainly for documentation purposes. However, you can insert both types of expression into a trigger or a stored procedure.

Steps To attach an expression to a business rule in a CDM:

  1. Select Model→Business Rules to display the List of Business Rules.
  2. Double-click the new business rule line to display the business rule property sheet.
  3. Click the Expression tab to display the Expression page.
  4. Click the Server tab at the bottom of the page to define a server expression.

    or

    Click the Client tab at the bottom of the page to define a client expression.
  5. Type an expression in the Expression textbox.
  6. Click OK in each of the dialog boxes.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.