Drools Documentation

Total Page:16

File Type:pdf, Size:1020Kb

Drools Documentation 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 .................................................................
Recommended publications
  • 8.2. Drools Fusion
    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
    [Show full text]
  • Drools Documentation
    Drools Documentation The JBoss Drools team [http://www.drools.org/community/team.html] Drools Documentation by Version 6.3.0.CR2 ...................................................................................................................................... xiv I. Welcome ........................................................................................................................ 1 1. Introduction ......................................................................................................... 2 1.1. Introduction ................................................................................................ 2 1.2. Getting Involved .......................................................................................... 2 1.2.1. Sign up to jboss.org ......................................................................... 3 1.2.2. Sign the Contributor Agreement ........................................................ 3 1.2.3. Submitting issues via JIRA ............................................................... 4 1.2.4. Fork GitHub ..................................................................................... 5 1.2.5. Writing Tests ................................................................................... 5 1.2.6. Commit with Correct Conventions ..................................................... 7 1.2.7. Submit Pull Requests ....................................................................... 8 1.3. Installation and Setup (Core and IDE) .......................................................
    [Show full text]
  • Drools Documentation
    Drools Documentation Version 6.1.0.Beta4 by The JBoss Drools team [http://www.jboss.org/drools/team.html] ........................................................................................................................................ xi 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
    [Show full text]
  • Drools 1 Drools
    Drools 1 Drools Drools Developer(s) Red Hat Stable release 5.4.0 / May 14, 2012 Written in Java Operating system Cross-platform Type Rules engine License ASL 2 Website http:/ / www. jboss. org/ drools/ Drools is a business rule management system (BRMS) with a forward chaining inference based rules engine, more correctly known as a production rule system, using an enhanced implementation of the Rete algorithm. Drools supports the JSR-94 standard for its business rule engine and enterprise framework for the construction, maintenance, and enforcement of business policies in an organization, application, or service. History The Drools Project was started by Bob McWhirter in 2001 and registered at SourceForge. Drools 1.0 was never released as the limitations of a brute force linear search approach were soon realised and work started on Drools 2.0, which was loosely based on the Rete algorithm, and the project was moved to Codehaus. During the 2.0 development cycle at Codehaus Nobi Y became the project lead and moved the project to a final 2.0 release. At this point the project had become the leading Java open source rule engine with a strong community and demand had started for commercial services. In October 2005 Drools was federated into JBoss as part of their JEMS offering and rebranded JBoss Rules. In 2006 JBoss itself was acquired by Red Hat. With financial backing from JBoss the JBoss Rules rewrite was possible with a full and enhanced Rete implementation with GUI tooling. Mid 2007 the Drools name was reclaimed since after two years people were still predominantly calling it Drools and having to refer to it as "Drools aka JBoss Rules", or "Drools (JBoss Rules)" was confusing.
    [Show full text]