[rules-users] when should we the not operator.

Esteban Aliverti esteban.aliverti at gmail.com
Thu Aug 4 13:23:20 EDT 2011


2 questions:
Is EventY also declared as event?
Are you using STREAM mode?

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Thu, Aug 4, 2011 at 6:59 PM, arun1979 <t91192004 at yahoo.com> wrote:

> Below is the code
>
> declare EventX
>    @role( event )
>    @timestamp( eventDate )
>    @expires( 2m )
> end
>
> rule "test rule"
> no-loop
> when
>    event : EventX(eventType == 'XYZ', $oId :Id)
>    not ( EventY(eventType == 'ABC',  Id == $oId, this after[0s,8s] event))
>
> then
> //fire the rule. code never reaches here if EventY does not occur at all
> end
>
>
> Can someone help me in understanding what i am doing wrong. I tried
> removing
> the not and inserting EventY and it works fine. The eventDate is also
> populated for both events.
>
> Thanks
>
> Arun
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/when-should-we-the-not-operator-tp3225995p3225995.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110804/75764b30/attachment.html 


More information about the rules-users mailing list