2 Feb 2005 01:21
[drools-dev] events and durations
Mark Proctor <mproctor <at> codehaus.org>
2005-02-02 00:21:06 GMT
2005-02-02 00:21:06 GMT
I have been working on this and have managed to keep durations and events while moving to a retract/assert for a modify. This is achieved by using two maps itemsToRetract and scheduledItemsToRetract to keep track of items retracted during a modify, the following assertion then removes them from the map, what ever is left in the maps after assertions is then actually retracted and events thrown. I have done a further optimisation so that if no events are registered it doesn't check the map. For those interested the bulk of those changes are in the Agenda: http://cvs.drools.codehaus.org/viewrep/drools/drools/drools-core/src/main/org/drools/reteoo/Agenda.java?r=1.54 This is quite a big change so can I urge you all to checkout cvs head to test and profile this and give feedback asap. I want to beta on thursday, although I wouldn't recommend that beta for production use untill we are sure this code is good. Mark
RSS Feed