Wednesday, May 31, 2006

What rules belong in the BRE and what rules should be hard-coded? (FAQ #2)

Here's a great way to decide which rules belong in the rule engine and which rules could be hard-coded. The idea is that rules that you have no control over, such as compliance rules, must be rule-based so you can react quickly and implement them as soon these rules are changed. When a regulating authority tells you when the new rules become effective, you have no control whatsoever, and a rule engine enables you to change fast.

Rules that you control, where you can take your time and decide when the rules shall become effective, can be hard-coded if so desired. There still may be benefits to rule-basing these rules, but at least you can hard-code them if necessary.


Rules that should be in the BRE:

  • Business Rules
  • External rules
  • Governing rules (Regulatory rules / Legislative rules / Compliance rules / etc.)
  • Rules that you do not control
  • Rules that change often (Promotion rules / etc.)
  • Industry rules
  • Market rules (Competitor rules / Pricing rules / etc.)
  • Environmental rules (Seasonality rules / Weather rules / etc. )

Rules that could be hard-coded

  • System Rules
  • Internal rules
  • Rules that you control
  • Rules that never or rarely change

Idea credit to Paul Ulshafer. See PowerPoint slide of this idea.

FAQ

Labels: ,

4 Comments:

At Wednesday, May 31, 2006 10:36:00 AM , Sandy Kemsley said...

I would have thought that the correct answer would be "all rules belong in the BRE"!

 
At Wednesday, May 31, 2006 12:17:00 PM , James Taylor said...

Experience from customers is that they often regret hard coding rules when they could have put them in the BRE and rarely regret the opposite! Just becuase you think they won't change, does not mean they won't.

 
At Wednesday, May 31, 2006 3:36:00 PM , Ask Rolo said...

I hope this chart helps management understand why most if not all business rules belong in the BRE: Everything changes. And it's changing faster and faster. Companies need rule engines just to keep up.

 
At Monday, August 07, 2006 10:11:00 PM , Andrei Palskoi said...

I think in real world the answer to a question whether some rules are suitable for putting into BRE often depends on the cost of bringing input data into the rules engine and processing the results. In some cases rules are so simple and static and the BRE is so far from data that it just does not make any sense.

 

Post a Comment

Links to this post:

Create a Link

<< Home