A consequence is the part of a business rule that specifies what happens when its condition is true. It sets or changes a value in the record type where the rule is defined. section 14.0 section 14.4
A consequence participates in business-rule execution as follows:
- The runtime evaluates the rule’s condition and executes the consequence when that condition produces true. section 14.0
- A consequence that alters data or otherwise does more than consume computation is an effect; executing it applies that effect. section 14.4
- Business rules can generate runtime code, with their effects gathered in a data structure rather than grouped by affected attribute. section 14.4
Rental discount
A rule defined on the Rental record type can compute and set a rental’s discount instead of leaving that value to the Runtime UI user. section 14.0
Figure 14.3 The general form of a business rule defined on a record type
Shows the general business-rule form and the relationship between condition and consequence. section 14.0
