随着软件规模的日趋复杂化,迫切需要一个良好的框架或统一的方法开发业务逻辑层。在深入研究规则引擎的工作原理及Rete模式匹配算法的基础上,采用Web Service分布式计算技术具体构建了一个基于规则引擎的Web应用框架,该框架可使业务逻辑与应用程序代码高度解耦,可对业务规则进行单独的管理和维护。因此,可极大提高软件的柔韧性,降低软件的维护与升级成本。最后,利用该框架具体构建了一个实际的订单系统原型,并通过实验结果分析了在采用规则引擎后对系统性能的影响,在实际中具有一定的参考价值。
Along with software scale becoming more complex,there is urgent need to have a good framework or a uniform method of business logic layer development.By studying thoroughly the rule engine' s working principle and the Rete pattern matching algorithm,the Web application framework based on regular engine is concretely built up with Web Service distributed computing technology,this framework makes business logic and the application code highly decouple and adapts to separate management and maintenance on business rules.Therefore,this method greatly improves software' s flexibility and reduces the cost of software upgrade and maintenance.At last,the prototype of actual orders system is specifically built using this framework,and according to the experiment result,the effect of system performance is analyzed after using the rule engine,it is of certain reference value in practice.