FraudDetection Rule and Unsuspend Account Rule
Add the
FraudDetection
rule, typing in the Source view or Form view, according to your preference.
Most of the code is in the conditions. The first condition checks whether the number of debits in the specified interval prior to the current time is greater than the specified number of debits. The interval and the number of debits are set in the
FraudCriteria
scorecard.
The second condition checks whether the sum of all debits in the verification interval is greater than the specified percentage of the account average monthly balance. The specified percentage is set in the
FraudCriteria
scorecard. The average monthly balance, for the purposes of this tutorial, is set in the Account instance created by the
CreateAccount
rule.
You will also add a rule called
UnsuspendAccount
. This is a convenience rule that allows you to change a customer status from Suspended to Normal at run-time.
Learning Points
AND
operator.
More Information
- See all references provided for Adding the InitializeScorecard Rule Function
- Read about Runtime Inferencing Behavior in TIBCO BusinessEvents Architect’s Guide.