2020年4月13日

easy-rules facts 规则引擎说明

摘要: 规则引擎是easy-rules facts 的核心,以下是关于规则引擎的一些参数说明 从3.1 开始,easy-rules提供了一个新的rule 执行方法InferenceRulesEngine 我们可以 进行推理的方式执行,直到有符合条件的rule 创建rule 引擎 包含了两种,默认的以及一个包 阅读全文

posted @ 2020-04-13 20:20 荣锋亮 阅读(1748) 评论(0) 推荐(0)

easy-rules facts 说明

摘要: facts 是方便easy-rules传递数据的地方,同时也是线程不安全的地方,facts 是一个hashmap,我们可以在不同的优先级的 rule 中分享以及操作facts facts 格式 HashMap<String, Object> facts 代码方式定义 Facts facts = ne 阅读全文

posted @ 2020-04-13 20:01 荣锋亮 阅读(1011) 评论(0) 推荐(0)

easy-rules rule 格式说明

摘要: easy-rules 提供了方便的注解,我们可以直接基于pojo编写rule rule 方法签名 public interface Rule { ​ /** * This method encapsulates the rule's conditions. * @return true if the 阅读全文

posted @ 2020-04-13 19:53 荣锋亮 阅读(1050) 评论(0) 推荐(0)

easy-rules json 文件格式rule定义

摘要: 这次就不帖完整代码了,只说明json 格式以及核心代码调用 json 格式 说明 就是一个json 数组,每个rule 的格式参考如下,需要包含name,condition,priority,actions ,description 不是必须的 { "name": "3", "description 阅读全文

posted @ 2020-04-13 19:45 荣锋亮 阅读(2477) 评论(0) 推荐(0)

导航