摘要
针对Drools只能解析与执行由专业人员定义的业务逻辑问题,提出基于语言解析程序ANTLR(Another Tool for Language Recognition)的解决办法,并给出相应改进后的开发框架ADF(ANTLR-Drools developing framework)及其关键实施方法。业务人员可以利用ADF提供的领域规则元模板直接定义业务逻辑,由基于ANTLR的元模板解析程序完成相应业务逻辑到Drools逻辑的转换。事实证明该框架的可行性和有效性。
Aiming at the problem that Drools can only parse and execute the business logic defined by professional person, we present a solution, which is based on the language parsing program ANTLR, together with the correlated improved development framework ADF and its key practice methods. The business people can use the domain rule meta-templates provided by ADF to define the business logic directly, then completes the transform from correlated business logic to Drools logic using the ANTLE-based meta-templates parsing program. Facts tes- tify the practicability and effectiveness of the framework.
出处
《计算机应用与软件》
CSCD
2015年第5期20-23,29,共5页
Computer Applications and Software
基金
湖南省科技计划项目(2010GK3068)
关键词
DROOLS
ANTLR
ADF
领域规则元模板
元模板解析程序
Drools ANTLR ANTLR-Drools developing framework (ADF) Domain rule meta-template Meta-template parsing program