I just got introduced to Business Rules, .drl files, Rule Engines and Drools.While exploring I realized that all those conditions and fact checking can be done in Java programs as well then why do we need to write .drl files and have a Rule Engine separately.
Examples I'hv found on internet does not distinguish between why we should a write a .drl file for a partucular Business Logic rather than putting the logic in a Java Class.
An explanation using an example would be a great help.