Drools- how to find out which all rules were matched? Steve's answer is solid, but the major changes brought in drools 6 make the code obsolete I am posting below a rewrite of Steve's code which takes into account the new api:
dsl - If condition in THEN clause drools - Stack Overflow Drools optimizes the checking of conditions on the LHS, but executes the consequences on the RHS as-is So by moving conditions to the RHS, you are causing your rules to be less performant because you're bypassing the optimization Drools provides The correct way would be -- as you probably figured out -- to have two rules like follows (Since
Newest drools Questions - Stack Overflow I have a project running using drools 6 4 0 and trying to upgrade to 7 0 0 The issue I am facing is - In Drools 6 4 0, in DSLR file I see 2 rules matching and it returns the 2nd rule in result, while
Drools - Ability to define rules at runtime? - Stack Overflow Is there a equivalent for Drools 7+ (I am using 7 27 0 Final) The code you point to uses internal classes methods (KnowledgeBase and KnowledgeSession), while the KieBase class does not have a addPackage method –
java - Drools 7 - load rules from DB - Stack Overflow I spent one day figuring out why my rules are not loaded AI assist was useless When I debugged Drools, I realized that all file not starting with this prefix are discarded Intellij AI assist told me initially this is a free form text I can change –