[rules-users] Odd rules execution for expired events
sopel39
napewnotrafi at gmail.com
Wed Jun 20 14:06:01 EDT 2012
Not only that. It can also cause NPE to be thrown. That would happen if there
is such a rule:
rule "Update Recording"
when
$m : Motion()
$r : Recording()
then
System.err.println("Recording: " + $r);
retract($r);
end
then this rule may be executed multiple times and $r could be NULL (since
there should be only one instance of a Recording at most). I would call it a
bug.
--
View this message in context: http://drools.46999.n3.nabble.com/Odd-rules-execution-for-expired-events-tp4018092p4018110.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list