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

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
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
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
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
 

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