I am very new to Drools, and started with the basics. Here is a setup;
- Have a few rule files
- Rules in different files belong to different Agenda groups
- All the rules operate on the same fact
- In my Unit Test, I obtain a particular "Agenda Group", set Focus (
session.setFocus
) I insert the fact (Here is where I notice the rules within the other agenda group are getting evaluated even though the focus is not on them)
I
fireAllRules()
Shouldn't the rules pertaining to the particular agenda group that is in focus be fired and not all rules from all the groups?