[rules-users] Timer Cron reevaluating same facts again and gain

Vincent LEGENDRE vincent.legendre at eurodecision.com
Wed Aug 29 06:41:38 EDT 2012


"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 ! 

----- Mail original -----

De: "rvkhakhkhar1" <rvkhakhkhar at gmail.com> 
À: rules-users at 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 at lists.jboss.org 
https://lists.jboss.org/mailman/listinfo/rules-users 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120829/c57f868e/attachment.html 


More information about the rules-users mailing list