Mastering JBoss Drools 6 discover the power of Drools and Business Rules for developing complex scenarios in your applications

Discover the power of Drools 6 and Business Rules for developing complex scenarios in your applications About This Book Implement and model different rules using the DRL full syntax Model complex business decisions and domain models in order to automate and improve your operational decisions with th...

Full description

Bibliographic Details
Other Authors: Salatino, Mauricio, author (author), De Maio, Mariano, author, Aliverti, Esteban, author
Format: eBook
Language:Inglés
Published: Birmingham : Packt Publishing [2016]
Edition:1st edition
Series:Community experience distilled.
Subjects:
See on Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630158706719
Table of Contents:
  • Cover ; Copyright; Credits; About the Authors; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Rules Declarative Nature; What are rules?; Rules basic structure; Declarative approach; Imperative versus Declarative implementation; Why do we use rules?; Rules independence; Rule execution chaining; Atomicity of rules; Ordering of rules; Rule execution life cycle; Collaboration with Rules; Involving more people with Rules using a BRMS; Letting the rule engine do its job; Rule engine algorithm; When should we use rules?; Complex scenario, simple rules
  • Ever-changing scenariosExample-eShop system; When not to use a rule engine; Summary; Chapter 2 : Writing and Executing Rules; Setting up our environment; Creating our first Drools project; Writing and executing our first rule; Using CDI to bootstrap the Rule Engine; The Rule language; Organizing our projects; Summary; Chapter 3 : Drools Runtime; Understanding the Drools runtime instances; KieModule & KieContainer; Loading rules from the classpath; Loading rules using Maven artifacts (Kie-CI); KieModule configurations (KieBases, KieSessions & StatelessKieSessions); KieScanner
  • Artifacts version resolutionDealing with unexpected issues and errors; Putting it all together; Summary; Chapter 4 : Improving Our Rule Syntax; Adding external interactions with global variables; Modifying the data in the working memory; The insert keyword; The modify and update keywords; The delete/retract keywords; Rule attributes; Example - controlling which rules will fire; Example - splitting rule groups with agenda group; Other types of rule groups; Rule dates management; Controlling loops in rules; Lock-on-active; Model properties execution control; Declared types
  • Property-reactive beansSpecial Drools operations; Boolean and numeric operations; Regex operations - matches; Collection operations - contains and memberOf; Working memory breakdown: the from clause; Collect from objects; Accumulate keyword; Advanced conditional elements; NOT keyword; EXISTS and FORALL keywords; Drools syntactic sugar; Nested accessors; Inline casts; Null-safe operators; Decorating our objects in memory; Adding traits with the don keyword; Removing traits with the shed keyword; Logical insertion of elements; Handling deviations of our rules; Deviations to our deviations
  • Rule inheritanceConditional named consequences; Summary; Chapter 5 : Understanding KIE Sessions; Stateless and stateful Kie Sessions; Stateless Kie Sessions; Stateful Kie Sessions; Kie runtime components; Globals; Globals as a way to parameterize the condition of a pattern; Globals as a way to introduce new information into a session in the LHS; Globals as a way to collect information from a session; Globals as a way to interact with external systems in the RHS; Channels; Queries; On-demand queries; Live queries; Event Listeners; Kie Base components; Functions; Custom operators
  • Custom accumulate functions