A simple event-based rule engine

Our sample scenario is about payments(domesticsepaforeign).Each payment consist of amount ,currency, debitor and creditor account informations.these payments from customer is too much.We’ll apply specific rules all these payments.For instance; a rule for Daily Transfer Amount,a rule for Black List Controls, a rule for critical Approvals etc.in the below We can see existing structure


Classes for Rule engine mechanism

Class Diagram


As a result,when we coded rule classes for payment types, it occurred the following structure


You should read martin fowler’s RulesEngine article for more information and you can download all codes via github

have a good enterprise code

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.