Hi there, I'm back.
Some of the advatanges of using a Rule Engine against plain java code are:
- Declarative definition of your business rules, that can be expressed using a domain specific language that business analysist can validate and understand. In other words you can define what to do and not how to do it.
- You keep the business logic decoupled from your application, letting you change it without recompiling your entire application.
- You need to understand that having rules is not the same of having multiple IF/ELSE statements. The analysis of true statements are not done sequencially, allowing you to analyze multiple conditions much faster.
- Using rules you don't burry the business logic inside your application code
Among other advantages