j-easy / easy-rules

The simple, stupid rules engine for Java
https://github.com/j-easy/easy-rules/wiki
MIT License
4.91k stars 1.06k forks source link

Add example / tutorial for SpelRule. #304

Closed hiteshyantriks closed 3 years ago

hiteshyantriks commented 4 years ago

There is not tutorial to learn and understand the SpelRule.

fmbenhassine commented 3 years ago

The tutorial you are looking for is the same as the shop tutorial except using SpELRule/SpELRuleFactory instead of MVELRule/MVELRuleFactory. If you are talking about the syntax, you can refer to the reference documentation of SpEL or take a look at the tests of the spel module.