SlideShare a Scribd company logo
1 of 25
Decision Tables
Michael Anstis
Core Developer, Red Hat
8th March 2012
Agenda

    What are they?


    A little theory


    Guvnor


    Demo




2
What are they?




        http://images.wellcome.ac.uk/indexplus/image/V0041734.html




3
What are they?

    Simply a table


       "Decision tables are a precise yet compact way to
       model complicated logic." wikipedia


    Easily understood by humans


    Enable quick and easy analysis



4
What are they?




    http://commons.wikimedia.org/wiki/File:Formal_Place_Setting_12_Course_Dinner.jpg




5
What are they?

    Sections


               Conditions
                            Condition states
                 stub

                Actions
                             Action states
                 stub
                             Rule identifiers




6
What are they?

    Layouts - horizontal




7
What are they?

    Layouts - vertical




8
A little theory

    Extended Entry




9
A little theory

 Limited Entry




10
A little theory




         http://www.flickr.com/photos/ctbto/4926598654/in/photostream/




11
A little theory

 Expanded form
     Guarantee of completeness
     Rule for every combination of conditions
     The number of columns should equal the product of the
      number of states for every condition.




12
A little theory




        http://www.flickr.com/photos/marcovdz/4520986339/in/photostream/




13
A little theory

 Contracted form
     Contraction is the first optimization
     Stage 1 – impossible matches
     Stage 2 – merge condition states




14
A little theory

 Contraction – impossible conditions




15
A little theory

 Contraction – merge condition states




16
A little theory




         http://www.flickr.com/photos/worldseriesboxing/6334574625/sizes/z/in/photostream/




17
A little theory

 Multiple, all hits




     Given a 35 year old with 15 years service
     1. Rule 1 matches, giving 22 days

     2. Rule 5 matches, giving an additional 3 days
     3. A total of 25 days is assigned

     Supported by default in Drools

18
A little theory

 Multiple, first hit




     Given a 35 year old with 15 years service

     1. Rule 4 matches, giving 25 days
     2. Rule 6 would match but Rule 4 was the first hit

 Can be emulated with Drools using Control Facts

19
A little theory

 Single hit




     Given a 35 year old with 15 years service

     1. Rule 3 matches, giving 25 days
     2. No other rules match




20
A little theory




                  http://www.flickr.com/photos/kmakice/4713798045/sizes/m/in/photostream/




21
A little theory

 Validation and verification


     Completeness


     Redundancy


     Conflict


     Deficiency


22
Guvnor




23
Guvnor

 Flexible authoring environment
 Extend or Limited Entry
 Automatic expansion
 V&V
 Import from Excel




24
And now for something completely different...




25

More Related Content

Similar to BRM 2012 (Decision Tables)

Undergraduated Thesis
Undergraduated ThesisUndergraduated Thesis
Undergraduated Thesis
Victor Li
 
Phase One Rules Demo w corp Overview
Phase One Rules Demo w corp OverviewPhase One Rules Demo w corp Overview
Phase One Rules Demo w corp Overview
Stan Ascher
 
Graham Ziervogel Masters Dissertation
Graham Ziervogel Masters DissertationGraham Ziervogel Masters Dissertation
Graham Ziervogel Masters Dissertation
Graham Ziervogel
 
Extending the Scalability of Linkage Learning Genetic Algorithms Theory & Pra...
Extending the Scalability of Linkage Learning Genetic Algorithms Theory & Pra...Extending the Scalability of Linkage Learning Genetic Algorithms Theory & Pra...
Extending the Scalability of Linkage Learning Genetic Algorithms Theory & Pra...
AmrYassin23
 
Reading Group 2014
Reading Group 2014Reading Group 2014
Reading Group 2014
Emir Muñoz
 

Similar to BRM 2012 (Decision Tables) (20)

Undergraduated Thesis
Undergraduated ThesisUndergraduated Thesis
Undergraduated Thesis
 
Triz - Product Design & Development
Triz - Product Design & DevelopmentTriz - Product Design & Development
Triz - Product Design & Development
 
Object-oriented design principles
Object-oriented design principlesObject-oriented design principles
Object-oriented design principles
 
Phase One Rules Demo w corp Overview
Phase One Rules Demo w corp OverviewPhase One Rules Demo w corp Overview
Phase One Rules Demo w corp Overview
 
Graham Ziervogel Masters Dissertation
Graham Ziervogel Masters DissertationGraham Ziervogel Masters Dissertation
Graham Ziervogel Masters Dissertation
 
Managing the Earthquake: Surviving Major Database Architecture Changes (rev.2...
Managing the Earthquake: Surviving Major Database Architecture Changes (rev.2...Managing the Earthquake: Surviving Major Database Architecture Changes (rev.2...
Managing the Earthquake: Surviving Major Database Architecture Changes (rev.2...
 
DutchMLSchool 2022 - Anomaly Detection at Scale
DutchMLSchool 2022 - Anomaly Detection at ScaleDutchMLSchool 2022 - Anomaly Detection at Scale
DutchMLSchool 2022 - Anomaly Detection at Scale
 
A multi-picture challenge for theories of vision
A multi-picture challenge for theories of visionA multi-picture challenge for theories of vision
A multi-picture challenge for theories of vision
 
How should we build that? Evolving a development environment that's suitable ...
How should we build that? Evolving a development environment that's suitable ...How should we build that? Evolving a development environment that's suitable ...
How should we build that? Evolving a development environment that's suitable ...
 
How to Use Agile to Move the Earth
How to Use Agile to Move the EarthHow to Use Agile to Move the Earth
How to Use Agile to Move the Earth
 
L2624 labriola
L2624 labriolaL2624 labriola
L2624 labriola
 
Some "challenges" on the open-source/open-data front
Some "challenges" on the open-source/open-data frontSome "challenges" on the open-source/open-data front
Some "challenges" on the open-source/open-data front
 
Unit 1 introduction
Unit 1 introductionUnit 1 introduction
Unit 1 introduction
 
Extending the Scalability of Linkage Learning Genetic Algorithms Theory & Pra...
Extending the Scalability of Linkage Learning Genetic Algorithms Theory & Pra...Extending the Scalability of Linkage Learning Genetic Algorithms Theory & Pra...
Extending the Scalability of Linkage Learning Genetic Algorithms Theory & Pra...
 
Introduction to design_patterns
Introduction to design_patternsIntroduction to design_patterns
Introduction to design_patterns
 
Analytic Dependency Loops in Architectural Models of Cyber-Physical Systems
Analytic Dependency Loops in Architectural Models of Cyber-Physical SystemsAnalytic Dependency Loops in Architectural Models of Cyber-Physical Systems
Analytic Dependency Loops in Architectural Models of Cyber-Physical Systems
 
Reading Group 2014
Reading Group 2014Reading Group 2014
Reading Group 2014
 
Computer Organization and Architecture.pdf
Computer Organization and Architecture.pdfComputer Organization and Architecture.pdf
Computer Organization and Architecture.pdf
 
RivieraJUG - MySQL Indexes and Histograms
RivieraJUG - MySQL Indexes and HistogramsRivieraJUG - MySQL Indexes and Histograms
RivieraJUG - MySQL Indexes and Histograms
 
Open Source 101 2022 - MySQL Indexes and Histograms
Open Source 101 2022 - MySQL Indexes and HistogramsOpen Source 101 2022 - MySQL Indexes and Histograms
Open Source 101 2022 - MySQL Indexes and Histograms
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 

BRM 2012 (Decision Tables)

  • 1. Decision Tables Michael Anstis Core Developer, Red Hat 8th March 2012
  • 2. Agenda What are they? A little theory Guvnor Demo 2
  • 3. What are they? http://images.wellcome.ac.uk/indexplus/image/V0041734.html 3
  • 4. What are they? Simply a table "Decision tables are a precise yet compact way to model complicated logic." wikipedia Easily understood by humans Enable quick and easy analysis 4
  • 5. What are they? http://commons.wikimedia.org/wiki/File:Formal_Place_Setting_12_Course_Dinner.jpg 5
  • 6. What are they? Sections Conditions Condition states stub Actions Action states stub Rule identifiers 6
  • 7. What are they? Layouts - horizontal 7
  • 8. What are they? Layouts - vertical 8
  • 9. A little theory Extended Entry 9
  • 10. A little theory Limited Entry 10
  • 11. A little theory http://www.flickr.com/photos/ctbto/4926598654/in/photostream/ 11
  • 12. A little theory Expanded form Guarantee of completeness Rule for every combination of conditions The number of columns should equal the product of the number of states for every condition. 12
  • 13. A little theory http://www.flickr.com/photos/marcovdz/4520986339/in/photostream/ 13
  • 14. A little theory Contracted form Contraction is the first optimization Stage 1 – impossible matches Stage 2 – merge condition states 14
  • 15. A little theory Contraction – impossible conditions 15
  • 16. A little theory Contraction – merge condition states 16
  • 17. A little theory http://www.flickr.com/photos/worldseriesboxing/6334574625/sizes/z/in/photostream/ 17
  • 18. A little theory Multiple, all hits Given a 35 year old with 15 years service 1. Rule 1 matches, giving 22 days 2. Rule 5 matches, giving an additional 3 days 3. A total of 25 days is assigned Supported by default in Drools 18
  • 19. A little theory Multiple, first hit Given a 35 year old with 15 years service 1. Rule 4 matches, giving 25 days 2. Rule 6 would match but Rule 4 was the first hit Can be emulated with Drools using Control Facts 19
  • 20. A little theory Single hit Given a 35 year old with 15 years service 1. Rule 3 matches, giving 25 days 2. No other rules match 20
  • 21. A little theory http://www.flickr.com/photos/kmakice/4713798045/sizes/m/in/photostream/ 21
  • 22. A little theory Validation and verification Completeness Redundancy Conflict Deficiency 22
  • 24. Guvnor Flexible authoring environment Extend or Limited Entry Automatic expansion V&V Import from Excel 24
  • 25. And now for something completely different... 25