[rules-users] Prevent re-evaluation of events in stream mode

sumantp sumantp at yahoo.com
Mon Dec 9 13:07:38 EST 2013


I forgot to include some output from my test. It shows that the two $600
transactions do not initially trigger alerts (as expected), the $800 one
triggers an alert (as expected), but the $100 one results in alerts for the
first 3 transaction (not expected).

Inserting Account = 1, Amount = 600.0, current average = 600.0
Inserting Account = 1, Amount = 600.0, current average = 600.0
Inserting Account = 1, Amount = 800.0, current average = 666.6666666666666
	***ALERT***: Higher than average transaction amount (Average =
666.6666666666666): Account = 1, Amount = 800.0
Inserting Account = 1, Amount = 100.0, current average = 525.0
	***ALERT***: Higher than average transaction amount (Average = 525.0):
Account = 1, Amount = 800.0
	***ALERT***: Higher than average transaction amount (Average = 525.0):
Account = 1, Amount = 600.0
	***ALERT***: Higher than average transaction amount (Average = 525.0):
Account = 1, Amount = 600.0




--
View this message in context: http://drools.46999.n3.nabble.com/Prevent-re-evaluation-of-events-in-stream-mode-tp4027171p4027172.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list