Understanding Business Rules
Tuesday, April 1, 2014 at 12:57PM
Charlie in Becoming an XBRL Master Craftsman

The most suscinct definition of business rules that I have come across is this:

Business rule: A formal and implementable expression of some user requirement.

This definition of what a busines rule is comes from the Business Rules Group which is a good source of information about business rules, particularly their Business Rules Manifesto.

There really is no standard definition for what a business rule is.  Here are some definitions which others use to help you get a sense for what business rules are:

Business rules exist in the form of relationships between pieces of business information. Some examples can help you better understand exactly what they are:

Business rules can be grouped into two broad categories: data quality logic related and business logic related.  In their Decision Model, Knowledge Partners International points out the important difference between data quality logic and business logic:

Business rules are important.  Why? Because the only way a meaningful exchange of information can occur is the prior existence of agreed upon technical syntax, domain semantics, and process/workflow rules rules. you cannot create business rules after-the-fact and then expect information to follow those rules.  Business rules need to be agreed upon in advance.

Business rules implemented in most business systems are a mess for two reasons. (This one hour videowalks you through this.)  First, the business rules are imbedded within the system.  This causes to problems: (1) the business rules need to be created by progammers and not business people, (2) you cannot exchange the business rules between business systems.  The second reason that the rules are very hard to manage.  There are no groups or patterns utilized. I won't go into this further, watch the video for more details.

Business rules are implemented in XBRL using XBRL Calculations, XBRL Definitions and XBRL Formulas. XBRL calculations are fairly well understood and used.  Basically these articulate roll up type relations.  But lots of other mathematical relations exist such as a roll forward, adjustment, or variance.  There are even more complex computations. To express these and other mathematical type relations something more powerful is necessary, and that is why XBRL Formula exists.

There are other business rules which have little or nothing to do with mathematical computations that need to be expressed.  XBRL definition relations are available to express these types of business rules.

For example take the whole-part relation. The document A Taxonomy of Whole-Part Relations goes into detail. This presentation (on slide 9) explains the difference between a taxonomy and a partonomy and provides these general categories of relations:

While XBRL can express these sorts of whole-part relations, there are no real standard approaches within XBRL for doing this.  For example, while XBRL Dimensions was created using XBRL definitions to be a standard approach to expressing allowed and disallowed dimensional relations; nothing exists to express other sorts of relations.  I thought that something like OWL could fill this gap, but while OWL is powerful it does not fulfil 100% of what is required and OWL is extremely hard for business users to understand.

In 2003 the paper, Business rules validation - the Standard the W3C Forgot, pointed out that there was no real way to articulate business rules using XML. Since then, many different business rules syntaxes have been created: RuleML, SPIN, RIF, SWRL.  I looked into all these things before and I reached two conclusions: this is very confusing, this is very complicated.

So the question is this: What is the best approach to expressing 100% of the business rules necessary to provide the appropriate level of semantic clarity for digital financial reporting and digital business reporting? What is the best syntax for expressing all these rules? How will these business rules be mantained and managed by business users?

To get a good grasp of the types of business rules which will be important to business users, read this blog post, this blog post, and this blog post.

Article originally appeared on XBRL-based structured digital financial reporting (http://xbrl.squarespace.com/).
See website for complete article licensing information.