How to Design Business Rule Overrides

on November 17, 2015
Business Rules Overrides

Managing Global Policies is Complex

In decision management, business rules overrides are bound to occur. In my previous post, I discussed the same rules for everyone. Establishing global policies is a good thing, but you will eventually run into exceptions. Therefore, in this post, I’ll cover how to design business rule overrides. I discuss this and other techniques in my below webinar, “Managing Complexity in Automated Decisions.”

Before I get to the design, let me explain the challenge. Let’s say that you have global policies that you want to apply consistently across all segments. Segments can include things like geographies, customer profiles, and product configurations. To simplify, let’s say all segments relate to geography. Each state has different regulations. Therefore, the business rules in your global policies must vary by state in order to be in compliance. In some states, you need to modify certain business rules. In other states, you need to remove certain business rules. And in some states, you need to add certain business rules.

Avoid Copy-Paste-Edit

Let’s start with what not to do. Unfortunately, many choose a copy-paste-edit approach. While this is simple to implement (leveraging search-and-replace), it’s difficult to maintain. In addition, with every copy, you’re increasing your risk of inconsistencies and errors. Each copy, for instance, will contain exceptions from the state you copies from. By forgetting to replacing these exceptions with the global rules, you will erroneously apply these exceptions to the subsequent states. As your number of copies grow, it becomes more and more challenging to distinguish exceptions from global rules. In practice, global rules don’t really exist anymore since a global change has to be applied to every single copy.

Design Your Rules as a Cascade

Instead, I recommend following 2 simple principles in your design:

  • Avoid duplication whenever possible.
  • Keep track of your overrides, whether they are changes, additions or deletions.

Object-oriented design (OOD) is an approach to designing software for scalability by emphasizing modularity, flexibility, and reusability. In a nutshell, hierarchies are defined to illustrate the relationship among objects and their core functions and exceptions. We can apply this hierarchy to business rules. Organizing your business rules as a cascade or waterfall enables you to define your global policy as a tree of segments, common rules, and exceptions. For example, you can arrange your rules by the country, state, and city. Common rules would be applied to the country level and any exceptions would be applied at the state or city level. When designed properly, you only need to author and edit rules once. Plus, if you use a decision management platform like SMARTS™, you can easily test any changes you make.

Below, I’ve shown an example of the common rules for risk tiering. In SMARTS™, you can simply select a rule and click on the override option to create an exception rule.

For example, you can specify an exception for California. This rule would only apply to all applicants from California, regardless of city (unless you add an exception at the city level). This exception rule will show up right next to the common rule. This makes it easy for you to follow the “chain of command.” For added safety, you can leverage SMARTS™ access control capabilities so that only the right users with the right access can modify the right rules. For example, certain users may only have access to certain branches in the decision logic.

Through cascading decisions and SMARTS™, you can achieve the following:

  • Organize business rules in a manner that’s easy to manage
  • Reduce risk of errors and inconsistencies
  • Collaborate on management of business rules
  • Keep your repository light (which means your rules will execute fast in production)

Learn more about Decision Management and Sparkling Logic’s SMARTS™ Data-Powered Decision Manager

Search Posts by Category

ABOUT US

Sparkling Logic Inc. is a Silicon Valley-based company dedicated to helping organizations automate and optimize key decisions in daily business operations and customer interactions in a low-code, no-code environment. Our core product, SMARTS™ Data-Powered Decision Manager, is an all-in-one decision management platform designed for business analysts to quickly automate and continuously optimize complex operational decisions. Learn more by requesting a live demo or free trial today.