"I expected only new facts to be evaluated as I'm running stateful session"
It only works this way if you let your session alive in a separate Thread, using fireUntilHalt().
If you use fireAllRules() (by instance each 5s), then yes, everything will be re-evaluated, just as if it were a new session.
NB : I hope you have something to clean up your facts too !
De: "rvkhakhkhar1" <rvkhakhkhar@gmail.com>
À: rules-users@lists.jboss.org
Envoyé: Mercredi 29 Août 2012 11:58:51
Objet: [rules-users] Timer Cron reevaluating same facts again and gain
I have a rule which fires let's say every 5 secs.
I have thread which continously infuse facts to ksession simultaneoulsy.
For example,
At 5th sec,
I have 500 matching facts, with total 1000 facts
Before the next invocation I infuse another 1000 facts.
So, at 10th sec,
Rule considers whole working memory including previously evaluated facts. I expected only new facts to be evaluated as I'm running stateful session
View this message in context:
Timer Cron reevaluating same facts again and gain
Sent from the
Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users