This is a simple spring boot exmaple of drool (rule engine).
It can be use to externzlize business logic from the application. Instead of using if-else statements you can use drools or excel file.
Example:
- store the file in S3 or config server and create the KieSession Bean on update. - Planning to add this soon
You can pass an object to the rule engine peform action based on the can condition