|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/master-drools/
课程评论:没有评论
课程名称:掌握Drools编程 - 学习如何编写Drools规则 课程概述: 本课程将带领您学习Drools DSL(Drools编程语言),深入探讨常见的DSL构造。我们将通过小步前进的方式逐步引入新概念,使初学者也能轻松跟上。本课程涵盖了Drools的常见主题,包括: - 了解规则引擎的概念 - 方法与规则的区别 - 为什么选择使用规则引擎而非常规Java代码 - 理解when/then条款 - 理解规则的触发顺序及不确定顺序时的处理 - 使用激活组、议程组和优先级控制执行流程 - 在DRL中声明变量 - 无状态会话和有状态会话的区别 - 在会话中插入事实和修改现有对象 - 交叉产品(类似于SQL连接) - exists、forall和collect的使用 - 利用电子表格决策表创建Drools规则 - 使用模板从电子表格和其他表格数据源生成规则 - 在Drools中进行复杂事件处理(CEP) - 事实与事件的区别 - 在Java和DRL中声明事实和事件 - 不同的规则执行模式(主动/被动、云/流、顺序) - 时间和长度滑动窗口 - 入口点 - 全局变量 - 定时器 - 了解Drools内部算法Phreak的工作原理 本课程包括两个Java项目,包含我们在课程中使用的所有代码。第一个项目包含传统Drools语法的所有代码示例,而第二个项目则包含所有规则的新Drools OOPath语法(由Drools 8引入)。第一个项目已升级为使用Drools 10(于2024年12月发布)。鼓励您在IntelliJ、Eclipse和VS Code中运行代码,以更好地理解和实验代码的修改。 完成本课程后,您将更好地理解使用Drools可以解决哪些问题,以及如何用Drools DSL编写常见的业务规则。
We learn Drools DSL (Drools programming language) and go over the most common DSL constructs. We move in small steps and gradually introduce new concepts so it is easier to follow even for a beginner. This way we cover the most common Drools topics like:what is a rule enginewhat is the difference between a method and a rulewhy one would use a rule engine instead of writing regular Java codeunderstanding of the when/then clausesunderstanding in which order the rules fire and when the order is not knownhow to control the execution using activation groups, agenda groups and saliencedeclaring variables in DRLdifference between stateless and stateful sessionsinserting facts and modifying existing objects in the sessioncross products (similar to SQL join)exists, forall and collectusing spreadsheet decision tables to create Drools rulesusing templates for creating rules and feeding data into them from spreadsheets and other tabular data sourcescomplex event processing (CEP) in Droolsdifference between fact and eventdeclaring facts and events in Java and inside DRL codedifferent rule execution modes (active/passive, cloud/stream, sequential)time and length-based sliding windowsentry-pointsglobal variablestimershow Drools internal algorithm Phreak worksThis course comes with two Java projects containing all the code we worked with during the course. The first project includes all the code examples in traditional Drools syntax and a second copy of all the rules in the new Drools OOPath syntax (introduced by Drools 8). The first project has been upgraded to run using Drools 10 (which was released in December 2024!).You are encouraged to check out and run the code yourself to better understand and experiment with making changes to it. There are instructions on running the code in IntelliJ, Eclipse, and VS Code.After completing this course, you better understand which kinds of problems could be solved with Drools and how to write the most common business rules in Drools DSL.