Variable constraint messages: Example 6 |
Example 6 Suppose there is a PERCENTAGE domain, and a business rule that states: "All percentages must be rounded to the nearest multiple of 0.5". This business rule has been implemented by a domain constraint, of which the condition reads:
And the correction reads:
For this domain constraint, you may specify the message:
This will lead to an information message at run-time, for example:
See also |