A condition specifies when a business rule applies. In the general form “When <condition>, then <consequence>,” it determines whether the consequence should be executed. section 14.0
Running a business rule evaluates its condition and executes the consequence only when the condition evaluates to true. Conditions can involve attributes of a record type, such as a rental period on Rental. section 14.0
A DSL for business rules must let domain experts:
- Write logical expressions for condition parts, including expressions involving date ranges. section 14.1
- Define business rules as part of a Record Type and provide their consequences separately. section 14.1
Figure 14.3 The general form of a business rule defined on a record type
Diagram of the general business-rule form, including the condition and consequence parts. section 14.0
