<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>fwiw … a couple of examples of event listeners:</div><div><br></div><div>Rule activations:</div><div><a href="https://github.com/gratiartis/sctrcd-payment-validation-web/blob/master/src/main/java/com/sctrcd/drools/util/TrackingAgendaEventListener.java">https://github.com/gratiartis/sctrcd-payment-validation-web/blob/master/src/main/java/com/sctrcd/drools/util/TrackingAgendaEventListener.java</a></div><div><br></div><div>Fact insertions, modifications and retractions:</div><div><a href="https://github.com/gratiartis/sctrcd-payment-validation-web/blob/master/src/main/java/com/sctrcd/drools/util/TrackingWorkingMemoryEventListener.java">https://github.com/gratiartis/sctrcd-payment-validation-web/blob/master/src/main/java/com/sctrcd/drools/util/TrackingWorkingMemoryEventListener.java</a></div><div><br></div><div><br></div><br><div><div>On 31 Dec 2013, at 18:48, Wolfgang Laun <<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On 31/12/2013, glambert27 <<a href="mailto:glambe2@hotmail.com">glambe2@hotmail.com</a>> wrote:<br><blockquote type="cite">Hi Laune,<br> The number of facts will varying between 70-90K so i'm not sure displaying<br>the number of facts to be inserted would be a good option.<br></blockquote><br>No, unless you know, beforehand, how many there will be.<br><br><blockquote type="cite">As for the event<br>listeners where can I find good docs on implementing?<br></blockquote><br>It's not difficult. There's a couple of session methods:<br>addEventListener(..) and you just implement the various After*Event<br>and Before*Event methods on the object you want to register as an<br>event.<br><br><blockquote type="cite">My biggest concern is<br>that rules once activated take quite some before the next rule is<br>activated.<br></blockquote><br>Not clear what you mean here. If you insert one fact at a time and<br>fireAllRules(), you won't have anything to display to the user. On the<br>other hand, if you collect, say 1000 facts, insert them all and then<br>fire all rules, you can show progress during insertion, and you can<br>show progress while rules fire.<br><br><blockquote type="cite">Thus the status bar can potentially show 20% one sec then stay there for<br>some time then jump to 70%.<br></blockquote><br>This would not happen during the scenario I've outlined before unless<br>rule executions change a lot - but then it's hopeless anyway.<br><br>-W<br><br><br><blockquote type="cite">Not a good indication of work being taking<br>place<br>but if that's all I have I'll work with it.<br><br><br><br>--<br>View this message in context:<br><a href="http://drools.46999.n3.nabble.com/Running-Feedback-during-drools-run-tp4027470p4027479.html">http://drools.46999.n3.nabble.com/Running-Feedback-during-drools-run-tp4027470p4027479.html</a><br>Sent from the Drools: User forum mailing list archive at Nabble.com.<br>_______________________________________________<br>rules-users mailing list<br>rules-users@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/rules-users<br><br></blockquote>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/rules-users<br></blockquote></div><br></body></html>