I hope we will have this work for all objects of a class also. For example:
not Person()
which says, there is NO person.
Stuart
---- On 13 Feb 2006 12:25:47, [EMAIL PROTECTED]
([EMAIL PROTECTED]) wrote:
> From: Michael Neale <[EMAIL PROTECTED]>
> To: [email protected]
> MIME-Version: 1.0
> Subject: Re: [drools-user] Firing rules when something DOESN'T exist
>
>
>
> yeah thats a really powerful feature, and is definately going to be part of
> Drools 3.
>
> It will work something like:
>
> not Person(name == "michael")
> which says, there is NO person called michael.
>
> Of course, you can work around this now, either by baking some of the logic
> into your model, or looking through working memory (which is possibly
> slower).
>
> Regards,
>
> Michael.
>
> On 2/11/06, Mitch Christensen <[EMAIL PROTECTED]> wrote:
> >
> > 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
> >
> >
> >
>