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

ClassDiagram1_existingMechanism

Classes for Rule engine mechanism

Class Diagram

ClassDiagram1_ruledesign

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

ClassDiagram_paymentRules

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 *