Introduction of Jboss Drool in Spring Boot

Swapnil agrawal
4 min readJul 31, 2022

Hello there ✋, Today I am going to tell you a little introduction to JBoss Drool. So, Basically, Java Drool is used to write Rule Engines.
A Rule Engine is a domain expert system that applies business rules to the given input and produces as per the matched rules among all the defined rules.

Drools is a Business Rule Management System Engine that is based on Java Rules API. It is very useful in creating complex applications where business logic keeps changing post-development.
For example, you may run a shopping website that provides discounts based on certain criteria. But these criteria may change in the future. In these cases, It would require a code change to update the business logic. However, You can use a rule engine like Drools to externalize the decision logic thus avoiding technical debt.

Why do we need to use it?
For understanding it, consider a scenario where a bank analyst is studying various factors like interest rates, applicant age, type of deposit, and deposit duration for calculating the interest rate.
If the above logic has been implemented in Java, then the following disadvantages would be there.

  • Multiple Time Changes in the code: So, the above logic will be executed in the form of an if-else block, so in the future, if any…

--

--

Swapnil agrawal

A passionate Computer programmer, making my path towars development field. You can follow me here https://bitmoreengineering.hashnode.dev/