作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2008, Vol. 34 ›› Issue (23): 56-58,8. doi: 10.3969/j.issn.1000-3428.2008.23.021

• 软件技术与数据库 • 上一篇    下一篇

基于Spring的业务规则引擎

刘 苇1,刘 勇2   

  1. (河南科技大学电子信息工程学院软件工程实验室,洛阳 471003)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2008-12-05 发布日期:2008-12-05

Business Rule Engine Based on Spring

LIU Wei1, LIU Yong2   

  1. Lab of Software Engineering, School of Electronic and Information Engineering, Henan University of Science and Technology, Luoyang 471003)
  • Received:1900-01-01 Revised:1900-01-01 Online:2008-12-05 Published:2008-12-05

摘要: 业务策略并不是静态的,它们经常变更,且其关联的业务流程也会随之变更。因此,有必要在实现和修改业务流程时保持灵活性。针对传统的程序设计方法使用一组硬编码的if语句来构成业务规则,当企业因业务需要改变规则时,系统都要对程序代码进行大量修改这一问题,在Spring框架的基础上,设计和实现一种基于Spring的业务规则引擎技术,能够有效地实现代码与业务规则分离,保证业务流程修改时的灵活性。

关键词: 规则引擎, Spring框架, 职责链

Abstract: Business rules certainly are not static state. They frequently change, and their connection rule also can change with it. As a result of these changes, it is necessary to maintain the flexibility when the business process is realized and modified. If system in view of the traditional programming method is used to constitute the business rule, when the enterprise needs to change the rule, the system must carry on the procedure code massively change. Based on the Spring framework, this paper designs and realizes one of the Spring rule engine technology, which can effectively realize the code and the service rule separates, and guarantee business rule change flexibility.

Key words: rule engine, Spring framework, chain of responsibility

中图分类号: