8.2. Drools Fusion
Total Page:16
File Type:pdf, Size:1020Kb
Drools Documentation Version 6.2.0.CR4 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 ............................................. 29 2.1.1. Project Editor permissions .............................................................. 29 2.1.2. Unify validation style in Guided Decision Table Wizard. ..................... 29 2.1.3. Improved Wizards .......................................................................... 30 2.1.4. Consistent behaviour of XLS, Guided Decision Tables and Guided Templates ............................................................................................... 31 2.1.5. Improved Metadata Tab .................................................................. 32 2.1.6. Improved Java Editor ..................................................................... 35 2.1.7. Execution Server Management UI ................................................... 37 2.1.8. Social Activities .............................................................................. 38 2.1.9. Contributors Dashboard .................................................................. 40 2.1.10. Package selector .......................................................................... 41 2.1.11. Improved visual consistency .......................................................... 42 2.2. New and Noteworthy in Integration 6.2.0 .................................................... 44 2.2.1. Kie Server ..................................................................................... 44 2.3. What is New and Noteworthy in Drools 6.1.0 .............................................. 46 2.3.1. JMX support for KieScanner ........................................................... 46 2.4. New and Noteworthy in KIE Workbench 6.1.0 ............................................. 46 2.4.1. Data Modeler - round trip and source code preservation .................... 46 2.4.2. Data Modeler - improved annotations .............................................. 46 2.4.3. Standardization of the display of tabular data ................................... 46 2.4.4. Generation of modify(x) {...} blocks .................................................. 48 2.5. New and Noteworthy in KIE API 6.0.0 ........................................................ 48 2.5.1. New KIE name ............................................................................... 48 2.5.2. Maven aligned projects and modules and Maven Deployment ............ 49 2.5.3. Configuration and convention based projects ................................... 49 2.5.4. KieBase Inclusion ........................................................................... 49 iii Drools Documentation 2.5.5. KieModules, KieContainer and KIE-CI .............................................. 50 2.5.6. KieScanner .................................................................................... 51 2.5.7. Hierarchical ClassLoader ................................................................ 51 2.5.8. Legacy API Adapter ....................................................................... 52 2.5.9. KIE Documentation ........................................................................ 52 2.6. What is New and Noteworthy in Drools 6.0.0 .............................................. 52 2.6.1. PHREAK - Lazy rule matching algorithm .......................................... 52 2.6.2. Automatically firing timed rule in passive mode ................................. 52 2.6.3. Expression Timers .......................................................................... 53 2.6.4. RuleFowGroup and AgendaGroups are merged ............................... 54 2.7. New and Noteworthy in KIE Workbench 6.0.0 ............................................. 55 2.8. New and Noteworthy in Integration 6.0.0 .................................................... 58 2.8.1. CDI ............................................................................................... 58 2.8.2. Spring ............................................................................................ 59 2.8.3. Aries Blueprints .............................................................................. 59 2.8.4. OSGi Ready .................................................................................. 59 3. Compatibility matrix ........................................................................................... 61 II. KIE ............................................................................................................................. 63 4. KIE ..................................................................................................................... 65 4.1. Overview .................................................................................................. 65 4.1.1. Anatomy of Projects ....................................................................... 65 4.1.2. Lifecycles ....................................................................................... 66 4.2. Build, Deploy, Utilize and Run ................................................................... 67 4.2.1. Introduction .................................................................................... 67 4.2.2. Building ......................................................................................... 70 4.2.3. Deploying ...................................................................................... 87 4.2.4. Running ......................................................................................... 93 4.2.5. Installation and Deployment Cheat Sheets ..................................... 108 4.2.6. Build, Deploy and Utilize Examples ................................................ 109 4.3. Security .................................................................................................. 121 4.3.1. Security Manager ......................................................................... 121 III. Drools Runtime and Language .................................................................................. 125 5. Hybrid Reasoning ............................................................................................ 127 5.1. Artificial Intelligence ................................................................................. 127 5.1.1. A Little History ............................................................................. 127 5.1.2. Knowledge Representation and Reasoning .................................... 128 5.1.3. Rule Engines and Production Rule Systems (PRS) ......................... 129 5.1.4. Hybrid Reasoning Systems (HRS) ................................................. 131 5.1.5. Expert Systems ............................................................................ 134 5.1.6. Recommended Reading ................................................................ 135 5.2. Rete Algorithm ........................................................................................ 138 5.3. ReteOO Algorithm ................................................................................... 145 5.4. PHREAK Algorithm ................................................................................. 146 6. User Guide ....................................................................................................... 155 iv 6.1. The Basics ............................................................................................. 155 6.1.1. Stateless Knowledge Session ........................................................ 155 6.1.2. Stateful Knowledge Session .......................................................... 158 6.1.3. Methods versus Rules .................................................................