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-stre...
Sent from the Drools: User forum mailing list archive at
Nabble.com.