花痴流口水颜文字
Drools is a Business Logic integration Platform (BLiP) written in Java
. It is an open source project but there are community and enterprise versions of the product also available. Drools helps in segregating the business layer from our application layer. The rules are written in .drl
file(Domain rule language file)
Drools是用Java
编写的业务逻辑集成平台(BLiP) 。 这是一个开源项目,但也提供该产品的社区和企业版本。 Drools帮助将业务层与应用程序层隔离。 规则以.drl
文件(域规则语言文件)编写
Logic, or rules in our case, are pieces of business knowledge and are expressed as,
逻辑或本例中的规则是业务知识的一部分,表示为
When some conditions are true then do something
流口水分为两个主要部分: (Drools is split in two main parts:)
Authoring:
Involves the creation of rules files(.DRL)
which contain the rules which are fed into a parser. The Parser checks for correct syntax of the rules and produces an intermediate structure that describes the rules.Authoring:
涉及规则文件(.DRL)
的创建,该文件包含馈入解析器的规则。 解析器检查规则的正确语法,并生成描述规则的中间结构。Runtime:
Creation of working memory and handling the activation which means how to load the rules to the engine and how to execute them.Runtime:
创建工作内存并处理激活 ,这意味着如何将规则加载到引擎以及如何执行它们。
花痴流口水颜文字