MCPcopy Create free account
hub / github.com/Hale-Lee/RuleEngine / main

Method main

src/main/java/tech/kiwa/engine/EngineService.java:250–278  ·  view source on GitHub ↗

这是一个例子,通过Student类来说明规则引擎的实际应用。Student定义在TL_STUDENT中(参考数据库) 在本例子中,我们构建了一组student对象, 同时配置一个简单的规则,如果学生年龄>7岁,或者学生年龄<3岁,则认为不可以读幼儿园, 这个时候在显示出来。 规则配置文件时studentrule.xml,这个文件需要在ruleEngine.properties中配置。 @param args

(String[] args)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

startMethod · 0.95
getResultMethod · 0.95
getNameMethod · 0.45

Tested by

no test coverage detected