SimpleRulesEngine
Overview
Simple Rules Engine is the simple, stupid rules engine or BRMS. It provides the facility to define the `Rule` with conditions and actions, and the RulesEngine evaluate conditions and execute actions.
So in terms of business, think of business rules as “if-then” statements. So, a basic example of a rule would be, “If A, then B, else if X, then do Y.” To put it in simple term, it's an expert program which runs the conditions (viz. rules) on the data and if any condition (viz. a rule) matches then it executes the corresponding actions.
With the help of "Mendix Expression Language" this rule engine also supports defining conditions on Mendix object, as well as you can define actions on Mendix objects and even execute a Microflow.
Features
- Define rules on Mendix objects by using Mendix Expression Language (MEL)
- Ability to define namespace to hold set of rules together
- Each rule will have it's corresponding action and that will be executed when condition is satisfied
- By using Mendix Expression Language (MEL) in Action we can modify (set) value of an attribute of input or output object
- As an Action you can also call a Microflow
- Rules engine is Mendix context aware, that means you can use it with NPE as well
Documentation
How to configure Simple Rules Engine in your app?
- Download the module in your Mendix App
- Create a navigation item using "SimpleRuleEngine_Overview" page from `__UseMe` folder. As an alternative you can also use "SNIP_SimpleRulesEngine_Overview" snippet in your page.