J-easy规则和表达语言支持

时间:2018-09-07 08:50:21

标签: rules rule-engine easy-rules

我正在根据here所描述的简单规则使用MVEL定义一些规则。

尽管回购协议上有非常好的文档,但MVEL示例仅限于放置字符串的操作。

name: "alcohol rule"
description: "children are not allowed to buy alcohol"
priority: 2
condition: "person.isAdult() == false"
actions:
  - "System.out.println(\"Shop: Sorry, you are not allowed to buy alcohol\");"

我正在尝试找到一种有意义的方式,使操作调用实现Action的类。 任何人都有解决方案,如何在MVEL中传递此信息!?

0 个答案:

没有答案