How data is processed in the Rule Engine?
How is data processed in the Rule Engine?
Data flow in a rule engine involves the movement and processing of data through a structured hierarchy of rule groups and rules. Let's break down how data flows from the initial collection to the application of actions like adding or deducting points within a loyalty management system:

Step One: Transaction data is passed into all Rule Groups:
Transaction Data from TXN or API is routed into different rule groups based on the filters and limits of the rule group.
Step two: Transaction data is passed in rules within Rule Groups:
Within each rule group, individual rules are defined. Conditions are evaluated based on the incoming data. If a condition is met from a rule in a rule group, the points will be then sent for addition in the third step.
When the conditions of a rule within a rule group are met (i.e., they evaluate to true based on the available data), the rule is triggered, indicating that the points associated with that rule should be credited or debited in step three.
Please note that in a rule group, the rule will be executed based on priority. If one rule is executed, the flow will exit the rule group and no further rules will be executed.
Step three: Accumulation of points from each rule group
Points credited or debited from various rule groups are summed up to determine the net effect of that transaction data from TXN file or API.
Step four: Member available point balance is updated
The accumulated results from step three get added to the member's account.
Step five: Communication is sent for the point update
Depending on the communication template, email & SMS are delivered to the member.
Keep in mind
Please note that in a rule group, the rule will be executed based on priority. If one rule is
executed, the flow will exit the rule group and no further rules will be executed.
Updated 6 months ago