He drools over the sight of good food. 他一见有好吃的东西就嘴馋。
This updated article introduces you to the Drools engine and uses a sample program to help you understand how to use Drools as part of your business logic layer in a Java application. 这篇更新的文章为您介绍Drools引擎,并使用示例程序帮助您理解如何使用Drools作为Java应用程序中业务逻辑层的一部分。
This project called Drools is a system for developing a rules-based expert system within an application. 这个项目叫做Drools,它是一个用来在应用程序内开发基于规则的专家系统的系统。
Although some backward-compatibility issues exist, this version's features make Drools even more attractive than before. 虽然现在还存在一些向后兼容性问题,但这个版本的特性让Drools比以前更有吸引力。
This is not a technical limitation of Drools. 这不是Drools的技术限制。
A Drools rules file has one or more rule declarations. Drools规则文件有一个或多个rule声明。
How do you express this in a Drools rules file? 如何在Drools规则文件中表达这一点呢?
As you've seen, Drools is a powerful and flexible rules engine implementation. 正如您所看到的,Drools是一种功能强大的灵活的规则引擎实现。
If you need the Drools rules execution engine to invoke complex Java code, then you can pass a reference to the Java object that contains the complex code to the rules engine as global data. 如果需要Drools规则执行引擎调用复杂的Java代码,则可以将对包含复杂代码的Java类的引用作为全局数据传递给规则引擎。
As I mentioned before, the Drools plug-in for Eclipse allows you to place breakpoints in your rules file. 如前所述,用于Eclipse的Drools插件允许在规则文件中设置断点。
An instance of the Drools WorkingMemory class is used to assert or declare the knowledge that the rules engine should use to determine which consequences should be executed. DroolsWorkingMemory类的实例用于断言或声明知识,规则引擎应使用它来确定应执行的结果。
As of this writing, the latest version of the Drools rules engine is4.0.4. 在编写本文之际,Drools规则引擎的最新版本是4.0.4。
This article shows how to use Drools as part of the business logic layer in a sample Java application. 本文展示如何使用Drools作为示例Java应用程序中业务逻辑层的一部分。
However, when doing this you should be careful to avoid writing complex Java code in the Drools rules file. 但是,这样做时要小心,避免在Drools规则文件中编写复杂的Java代码。
Using Drools'features and capabilities, you should be able to implement the complex business logic of your application in a declarative manner. 使用Drools的特性和能力,您应该能够以声明方式实现应用程序的复杂业务逻辑。
I highly recommend that you use this plug-in to work with Drools. 我强烈建议您通过这个插件来使用Drools。
This instance is then used to configure an instance of the Drools RuleBase class, which is assigned to the RulesEngine class's rules property. 然后,使用这个实例配置DroolsRuleBase类的一个实例,后者被分配给RulesEngine类的rules属性。
The sample program uses the Drools rules engine to evaluate instances of the Machine class. 示例程序使用Drools规则引擎对Machine类的实例求值。
As an exercise, you can modify the sample application so that it uses the Java Rule Engine API instead of referencing the Drools-specific classes in the Java code. 作为练习,可以修改示例程序以使它使用JavaRuleEngineAPI,而不是使用Java代码引用特定于Drools的类。
The program uses a Drools rules file to express in a declarative way the business rules defined in the preceding section. 程序使用Drools规则文件以声明方法表示上一节定义的业务规则。
But in PD, this automatic swallowing is sometimes lost, thus the saliva pools and drools on the side of the mouth. 但在PD,这种自动吞咽有时会丢失,因此唾液池及嘴角站在一边的嘴。
After this sprint, Drools infrastructure was in place, the team was aware of its syntax and other techniques. 这个冲刺之后,Drools的基础设施就位了,团队了解了它的语法和其他技术。
This lets us delegate the responsibility of propagating the execution of the process using more complex tools like JBoss Drools ( an inference engine). 这可让我们使用诸如JBossDrools(一个接口引擎)这样的复杂工具来将传播流程执行的责任委派下去。
A simple problem was thought of to be solved with the help of Drools. 一个被设想出来的简单问题在Drools的帮助下得到了解决。
Further, they can then be more easily centrally maintained through a business rules management repository, such as what Drools Guvnor provides ( described as well in the book). 而且,通过一个业务规则管理库,比如DroolsGuvnor(本书中已描述的)提供的功能,更易于集中维护这些规则。
Off-line Analysis Research and Implementation Based on Drools 基于Drools的离线分析研究与实现
A typical example might be something like a rules engine ( like Drools). 一个典型的例子就是规则引擎(rulesengine,比如Drools)。
Application of drools in network fault management system Drools在网络故障管理系统中的应用
Solving a simple problem using Drools gave a chance of hands on which boosted the confidence in the technology. 使用Drools解决简单问题使得有机会亲手实验,这增强了对于技术的信心。