Sybase XML Impact Driver User Manual


 
Chapter 2 Building an XML model
XSM User's Guide 133
You can define several types of business rules in an XML model:
Type Description Example
Constraint Additional check constraint
on a value
The start date should be
inferior to the end date of a
project
Definition Properties of an element in
the XML model
A customer is a person
identified by a name and an
address
Fact Certainty, existence in the
XML model
A client may place one or
more orders
Formula Calculation used in the XML
model
The total order is the sum of
all the order line costs
Requirement Functional specification in the
XML model
The model is designed so that
total losses do not exceed
10% of total sales
Validation Constraint on a value in the
XML model
The sum of all orders for a
client must not be greater than
the client's allowance
Business rule expression property
The Expression page of a business property sheet allows you to complete a
rule by adding a technical expression.
There are two types of expression for a business rule:
Server that can be generated to a database
Client that is used mainly for documentation purposes
Expressions are mainly used in a CDM or a PDM.
Creating a business rule
You can create a business rule in different ways:
From the Browser tree view
From the List of Business Rules