Drools Documentation
Total Page:16
File Type:pdf, Size:1020Kb
Drools Documentation Version 6.2.0.Beta2 by The JBoss Drools team [http://www.jboss.org/drools/team.html] ....................................................................................................................................... xiii I. Welcome ........................................................................................................................ 1 1. Introduction ......................................................................................................... 3 1.1. Introduction ................................................................................................ 3 1.2. Getting Involved .......................................................................................... 3 1.2.1. Sign up to jboss.org ......................................................................... 4 1.2.2. Sign the Contributor Agreement ........................................................ 4 1.2.3. Submitting issues via JIRA ............................................................... 5 1.2.4. Fork GitHub ..................................................................................... 6 1.2.5. Writing Tests ................................................................................... 6 1.2.6. Commit with Correct Conventions ..................................................... 8 1.2.7. Submit Pull Requests ....................................................................... 9 1.3. Installation and Setup (Core and IDE) ........................................................ 11 1.3.1. Installing and using ........................................................................ 11 1.3.2. Building from source ....................................................................... 21 1.3.3. Eclipse ........................................................................................... 22 2. Release Notes .................................................................................................... 29 2.1. New and Noteworthy in KIE Workbench 6.2.0.Beta2 ................................... 29 2.1.1. Improved Metadata Tab .................................................................. 29 2.1.2. Improved Java Editor ..................................................................... 32 2.1.3. Execution Server UI ....................................................................... 34 2.1.4. Social Activities .............................................................................. 34 2.1.5. Contributors Dashboard .................................................................. 34 2.1.6. Package selector ............................................................................ 35 2.1.7. Improved visual consistency ........................................................... 36 2.1.8. Form Modeler improvements ........................................................... 38 2.2. New and Noteworthy in KIE Workbench 6.2.0.Beta1 ................................... 38 2.2.1. Project Editor permissions .............................................................. 38 2.2.2. Unify validation style in Guided Decision Table Wizard. ..................... 39 2.2.3. Improved Wizards .......................................................................... 40 2.2.4. Consistent behaviour of XLS, Guided Decision Tables and Guided Templates ............................................................................................... 41 2.3. What is New and Noteworthy in Drools 6.1.0 .............................................. 42 2.3.1. JMX support for KieScanner ........................................................... 42 2.4. New and Noteworthy in KIE Workbench 6.1.0 ............................................. 42 2.4.1. Data Modeler - round trip and source code preservation .................... 42 2.4.2. Data Modeler - improved annotations .............................................. 42 2.4.3. Standardization of the display of tabular data ................................... 42 2.4.4. Generation of modify(x) {...} blocks .................................................. 44 2.5. New and Noteworthy in KIE API 6.0.0 ........................................................ 44 2.5.1. New KIE name ............................................................................... 44 2.5.2. Maven aligned projects and modules and Maven Deployment ............ 45 2.5.3. Configuration and convention based projects ................................... 45 2.5.4. KieBase Inclusion ........................................................................... 45 iii Drools Documentation 2.5.5. KieModules, KieContainer and KIE-CI .............................................. 46 2.5.6. KieScanner .................................................................................... 47 2.5.7. Hierarchical ClassLoader ................................................................ 47 2.5.8. Legacy API Adapter ....................................................................... 48 2.5.9. KIE Documentation ........................................................................ 48 2.6. What is New and Noteworthy in Drools 6.0.0 .............................................. 48 2.6.1. PHREAK - Lazy rule matching algorithm .......................................... 48 2.6.2. Automatically firing timed rule in passive mode ................................. 48 2.6.3. Expression Timers .......................................................................... 49 2.6.4. RuleFowGroup and AgendaGroups are merged ............................... 50 2.7. New and Noteworthy in KIE Workbench 6.0.0 ............................................. 51 2.8. New and Noteworthy in Integration 6.0.0 .................................................... 54 2.8.1. CDI ............................................................................................... 54 2.8.2. Spring ............................................................................................ 55 2.8.3. Aries Blueprints .............................................................................. 55 2.8.4. OSGi Ready .................................................................................. 55 3. Compatibility matrix ........................................................................................... 57 II. KIE ............................................................................................................................. 59 4. KIE ..................................................................................................................... 61 4.1. Overview .................................................................................................. 61 4.1.1. Anatomy of Projects ....................................................................... 61 4.1.2. Lifecycles ....................................................................................... 62 4.2. Build, Deploy, Utilize and Run ................................................................... 63 4.2.1. Introduction .................................................................................... 63 4.2.2. Building ......................................................................................... 66 4.2.3. Deploying ...................................................................................... 83 4.2.4. Running ......................................................................................... 89 4.2.5. Installation and Deployment Cheat Sheets ..................................... 104 4.2.6. Build, Deploy and Utilize Examples ................................................ 105 4.3. Security .................................................................................................. 117 4.3.1. Security Manager ......................................................................... 117 III. Drools Runtime and Language .................................................................................. 121 5. Hybrid Reasoning ............................................................................................ 123 5.1. Artificial Intelligence ................................................................................. 123 5.1.1. A Little History ............................................................................. 123 5.1.2. Knowledge Representation and Reasoning .................................... 124 5.1.3. Rule Engines and Production Rule Systems (PRS) ......................... 125 5.1.4. Hybrid Reasoning Systems (HRS) ................................................. 127 5.1.5. Expert Systems ............................................................................ 130 5.1.6. Recommended Reading ................................................................ 131 5.2. Rete Algorithm ........................................................................................ 134 5.3. ReteOO Algorithm ................................................................................... 141 5.4. PHREAK Algorithm ................................................................................. 142 6. User Guide ....................................................................................................... 151 iv 6.1. The Basics ............................................................................................. 151 6.1.1. Stateless Knowledge Session ........................................................ 151 6.1.2. Stateful Knowledge Session .......................................................... 154 6.1.3. Methods versus Rules .................................................................