228
Drools Introduction and General User Guide Version 6.0.0.CR3 by The JBoss Drools team [http://www.jboss.org/drools/team.html]

General User Guide Version 6.0.0.CR3 Drools Introduction · PDF fileDrools API, but in some environments the JSR-94 is mandated. • drools- - this is the decision tables 'compiler

  • Upload
    vudang

  • View
    217

  • Download
    3

Embed Size (px)

Citation preview

  • Drools Introduction and

    General User GuideVersion 6.0.0.CR3

    by The JBoss Drools team [http://www.jboss.org/drools/team.html]

    http://www.jboss.org/drools/team.htmlhttp://www.jboss.org/drools/team.html

  • iii

    ......................................................................................................................................... v

    1. Welcome ...................................................................................................................... 1

    2. Installation and Setup (Core and IDE) ......................................................................... 3

    2.1. Installing and using ............................................................................................. 3

    2.1.1. Dependencies and jars ............................................................................. 3

    2.1.2. Use with Maven, Gradle, Ivy, Buildr or ANT ............................................... 4

    2.1.3. Runtime ................................................................................................... 5

    2.1.4. Installing IDE (Rule Workbench) ............................................................... 5

    2.2. Building from source ......................................................................................... 13

    2.2.1. Getting the sources ................................................................................ 13

    2.2.2. Building the sources ............................................................................... 13

    2.3. Eclipse ............................................................................................................. 14

    2.3.1. Importing Eclipse Projects ....................................................................... 14

    3. Getting Involved ........................................................................................................ 21

    3.1. Sign up to jboss.org .......................................................................................... 21

    3.2. Sign the Contributor Agreement ......................................................................... 21

    3.3. Submitting issues via JIRA ................................................................................ 22

    3.4. Fork Github ...................................................................................................... 23

    3.5. Writing Tests .................................................................................................... 23

    3.6. Commit with Correct Conventions ...................................................................... 25

    3.7. Submit Pull Requests ........................................................................................ 26

    4. Drools Release Notes ................................................................................................ 29

    4.1. What is New and Noteworthy in Drools 6.0.0 ...................................................... 29

    4.1.1. Drools Expert ......................................................................................... 29

    4.1.2. Guvnor .................................................................................................. 29

    4.1.3. Drools Workbench .................................................................................. 29

    4.1.4. OptaPlanner (AKA Drools Planner) .......................................................... 56

    4.1.5. Dashboard Builder .................................................................................. 59

    4.2. What is New and Noteworthy in Drools 5.5.0 ...................................................... 60

    4.2.1. Drools Expert ......................................................................................... 60

    4.2.2. Guvnor .................................................................................................. 64

    4.2.3. Planner .................................................................................................. 70

    4.2.4. Drools Integration ................................................................................... 74

    4.3. What is New and Noteworthy in Drools 5.4.0 ...................................................... 75

    4.3.1. Drools Expert ......................................................................................... 75

    4.3.2. Drools Fusion ........................................................................................ 89

    4.3.3. Guvnor .................................................................................................. 91

    4.3.4. Planner ................................................................................................ 115

    4.3.5. Eclipse plugin ....................................................................................... 120

    4.4. What is New and Noteworthy in Drools 5.3.0 .................................................... 120

    4.4.1. Drools Expert ....................................................................................... 120

    4.4.2. Guvnor ................................................................................................ 124

    4.4.3. Drools Planner ..................................................................................... 136

    4.4.4. Drools Integration ................................................................................. 138

  • Drools Introduction and Gener...

    iv

    4.5. What is New and Noteworthy in Drools 5.2.0 .................................................... 139

    4.5.1. Knowledge API (renamed from Drools API) ............................................ 139

    4.5.2. Drools Expert and Fusion ..................................................................... 139

    4.5.3. Drools and jBPM integration .................................................................. 146

    4.5.4. Merging Drools Flow into jBPM5 ........................................................... 147

    4.5.5. Guvnor ................................................................................................ 147

    4.5.6. Eclipse ................................................................................................. 158

    4.5.7. Maven artifactId changes ...................................................................... 158

    4.6. What is New and Noteworthy in Drools 5.1.0 .................................................... 159

    4.6.1. Drools API ........................................................................................... 159

    4.6.2. Core .................................................................................................... 160

    4.6.3. Expert .................................................................................................. 166

    4.6.4. Flow .................................................................................................... 169

    4.6.5. Guvnor ................................................................................................ 170

    4.6.6. Eclipse ................................................................................................. 184

    4.6.7. Known Issues ...................................................................................... 185

    4.7. What is New and Noteworthy in Drools 5.0.0 .................................................... 185

    4.7.1. Drools API ........................................................................................... 185

    4.7.2. Drools Guvnor ...................................................................................... 188

    4.7.3. Drools Expert ....................................................................................... 193

    4.7.4. Drools Flow .......................................................................................... 201

    4.7.5. Drools Fusion ....................................................................................... 209

    4.7.6. Eclipse IDE .......................................................................................... 212

    4.8. What is new in Drools 4.0 ............................................................................... 213

    4.8.1. Language Expressiveness Enhancements ............................................. 214

    4.8.2. Core Engine Enhancements .................................................................. 214

    4.8.3. IDE Enhancements ............................................................................... 215

    4.8.4. Business Rules Management System - BRMS ....................................... 215

    4.8.5. Miscellaneous Enhancements ............................................................... 215

    4.9. Upgrade tips from Drools 3.0.x to Drools 4.0.x .................................................. 215

    4.9.1. API changes ........................................................................................ 215

    4.9.2. Rule Language Changes ...................................................................... 216

    4.9.3. Drools Update Tool .............................................................................. 217

    4.9.4. DSL Grammars in Drools 4.0 ................................................................ 218

    4.9.5. Rule flow Update for 4.0.2 .................................................................... 218

    5. Drools compatibility matrix ...................................................................................... 221

  • v

  • vi

  • Chapter 1.

    1

    Chapter 1. WelcomeI've always stated that end business users struggle understanding the dif