|
Business Rules – February 2009
Are Integrity Constraints Business Rules? Not!
Published: February 1, 2009 Data professionals are prone to equating “integrity constraint” with “business rule.” Are they the same? Probing deeper, it’s generally accepted that any integrity
constraint can be violated – indeed, the reason you define them is to prevent that very thing from happening. Can all business rules be violated? Is violating an integrity constraint the same
as violating a business rule? This column examines these and related questions.
Database professionals are prone to equating “integrity constraint” with “business rule.” Are they the same? Probing deeper, it’s generally accepted that any integrity constraint can be violated – indeed, the reason you define them is to prevent that very thing from happening. Can all business rules be violated? Is violating an integrity constraint the same as violating a business rule? To make sense of these questions, consider the following sample rules.
So which of the samples above are integrity constraints? Obviously, the third is. With some translation work, perhaps the first and second could become ones too. But they would need to become more data-ish first. And that’s the key difference. Business rules always have to do with the conduct and decisions of people; integrity constraints and system rules always have to do with the integrity of data. That’s a big difference! Also note that in contrast to integrity constraints, not all business rules can be violated. The reason is that some business rules (e.g., the second above) have to do with the way people understand concepts and make decisions. You can misapply such rules, but you really can’t violate them per se. To emphasize these points, let’s examine two more sample rules.
The business rules approach makes a clear distinction between these two cases. It prescribes looking first at rules from a business point of view, then at the rules from a data-recording point of view (whether by computer, pencil and paper, abacus, etc.). If you can’t get the former right, you’ll never get the latter right. By the way, getting the former right doesn't guarantee you will get the latter right – it just gives you the best possible chance. In my experience, failing to appreciate the distinctions between business rules and system rules or integrity constraints is a root cause of many IT “requirements” problems. A customer record may include only one phone number. The system may record only two driver names in the record of a car rental. Integrity constraints probably, but not business rules! Go to Current Issue | Go to Issue Archive Recent articles by Ronald G. Ross
Ronald G. Ross - Ronald G. Ross is recognized internationally as the “father of business rules.” He is Co-founder and Principal of Business Rule Solutions, LLC, where he is active in consulting services, publications, the Proteus® methodology, and RuleSpeak.® Ronald serves as Executive Editor of BRCommunity.com and as Chair of the Business Rules Forum Conference. He is the author of eight professional books, most recently Business Rule Concepts (2009). He speaks and gives popular public seminars across the globe. You can read his blog at: http://www.ronross.info/blog/
|