官术网_书友最值得收藏!

Chapter 2. Writing and Executing Rules

The best way to learn something new is by trying it out. For this reason, in this chapter, we are going to cut to the chase to write and execute our first rules. We will also cover the most important points about the rule language and how to effectively write rules that mean something to your domain. This chapter will use the eShop model introduced in the previous chapter to demonstrate a set of scenarios where rules can be applied.

Before we start coding, in the first half of this chapter, you will learn how to set up all the standard tools required to work with Drools and the examples provided with this book. We will be creating a project from scratch, therefore, you can use this chapter as a reference to start your applications from the ground up. The second half of the chapter will cover the introduction to the DRL language and how we recommend to organize your projects when you are using rules or other knowledge assets such as business processes.

Briefing this up, this chapter we will cover the following topics:

  • Setting up our environment
  • Creating our first Drools project
  • Writing and executing our first rule
  • Discussing the DRL rule language
  • Organizing our projects
主站蜘蛛池模板: 东莞市| 郎溪县| 厦门市| 剑阁县| 罗甸县| 通渭县| 云龙县| 襄垣县| 屏东县| 石阡县| 施秉县| 安福县| 安徽省| 通辽市| 疏勒县| 平远县| 丹阳市| 台湾省| 尼木县| 宁南县| 定陶县| 迭部县| 准格尔旗| 常宁市| 敖汉旗| 西城区| 始兴县| 瓦房店市| 兴文县| 吉木萨尔县| 新化县| 米脂县| 阜城县| 闸北区| 辉县市| 当阳市| 南雄市| 枣庄市| 星子县| 青阳县| 剑河县|