Of course, I could call WorkingMemory.getObjects() in my consequence and
process the list looking for absence of the object in question.  But this
seems inelegant in that I am actually performing what should be a
conditional in my consequence.

-Mitch

-----Original Message-----
From: Mitch Christensen [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 10, 2006 7:49 AM
To: [email protected]
Subject: [drools-user] Firing rules when something DOESN'T exist

Hey,

 

I've used rules engines in the past the support the notion of a NOT
pattern/conditional element for firing rules when a particular item doesn't
exist in working memory.  Does Drools support such a feature?  I can't find
it in the docs.

 

I want to apply the following logic:

 

IF there is an event object available

AND there is no existing event history object

THEN.

 

-Mitch



Reply via email to