For 3.0 I'm looking into adding more hooks into various Drools states. However for the moment you're probably best off adding an event that fires on ActivationFiredEvent that checks the size of the Agenda in the working memory.

Mark
Mark Stang wrote:
Hi,
I was wondering, if I have a bunch of facts in WM then I can create
rules that will be applied to each fact.  However, how do I create a
rule that will wait for all of those rules to finish?  And what happens
if they create new facts that rules need to be applied to?

What I have is a bunch of facts that are date based and re-occuring.
Kind of like monthly appointments.  Each Appointment is a fact and there
may be subsequent appointments until a certain date.  Once that happens,
then I would like another rule to fire that would total all of the
appointments and list them.

I could create a list and add them to the list and then process the
list, but how would I know when all of the appointments were done and
generated?

I am just getting started in "declarative" programming.  I did a lot of
Prolog but it was fifteen years ago.  I reviewed my prolog and RDF and
they seem close but not exact.  I am trying to avoid forcing the rules
into an imperative form.

Suggestions would be welcome!

thanks,

Mark


Reply via email to