[rules-users] prevent rule evaluation for certain rules while event insertion

Neel neeleshdev at yahoo.co.in
Thu Sep 8 20:54:20 EDT 2011


Hi,I'm using Drools 5.3.0. I've a proprietary key-value based data store, where all the events are stored. As soon as an event is received, it is inserted in the session and the rules (example below) is fired:
rule "registration count"no-loopdialect "mvel"when	$e : Event(type == "registration", $s: student)then	$s.registerCount += 1;	update($s);end
All the 'registration' events which has occurred in the past (stored in data store) also are inserted in session so that any rule with temporal operator (relates among the events) can work fine. If I insert previous events then the rule "registration count" is evaluated again for each previous events and fired. Please let me know, if there is a way to prevent rule evaluation for certain rules while event insertion. The events are too many, so I don't keep all in working memory for  long period, instead I store previous events in data store and insert all previous events also in session when I get a new event.Please help me regarding the issue.
Thanks,Neel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110909/bdffa629/attachment.html 


More information about the rules-users mailing list