Ah. Figured out finally. I should have read the API docs properly.
Apparently, I was using the Iterable overloaded execute method in the
StatelessKnowledgeSession which iterates through all my facts and applies
the rules against it.
However, with StatefulKnowledgeSession, I should be iterating beforehand and
inserting the facts one by one. And then, I could fire the rules.
Just a thought. Any reason why there isn't a insert(Iterable) method in
StatefulKnowledgeSession.
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-rules-not-getting-fired-tp401952...
Sent from the Drools: User forum mailing list archive at
Nabble.com.