Decision TablesMichael AnstisCore Developer, Red Hat8th March 2012
Agenda    What are they?    A little theory    Guvnor    Demo2
What are they?        http://images.wellcome.ac.uk/indexplus/image/V0041734.html3
What are they?    Simply a table       "Decision tables are a precise yet compact way to       model complicated logic." w...
What are they?    http://commons.wikimedia.org/wiki/File:Formal_Place_Setting_12_Course_Dinner.jpg5
What are they?    Sections               Conditions                            Condition states                 stub      ...
What are they?    Layouts - horizontal7
What are they?    Layouts - vertical8
A little theory    Extended Entry9
A little theory Limited Entry10
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...
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 – m...
A little theory Contraction – impossible conditions15
A little theory Contraction – merge condition states16
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    ...
A little theory Multiple, first hit     Given a 35 year old with 15 years service     1. Rule 4 matches, giving 25 days   ...
A little theory Single hit     Given a 35 year old with 15 years service     1. Rule 3 matches, giving 25 days     2. No o...
A little theory                  http://www.flickr.com/photos/kmakice/4713798045/sizes/m/in/photostream/21
A little theory Validation and verification     Completeness     Redundancy     Conflict     Deficiency22
Guvnor23
Guvnor Flexible authoring environment Extend or Limited Entry Automatic expansion V&V Import from Excel24
And now for something completely different...25
Upcoming SlideShare
Loading in...5
×

BRM 2012 (Decision Tables)

2,084

Published on

Presentation given by Michael Anstis at the 2012 RedHat BRM Event in London.

Published in: Technology, Sports
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,084
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
33
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

BRM 2012 (Decision Tables)

  1. 1. Decision TablesMichael AnstisCore Developer, Red Hat8th March 2012
  2. 2. Agenda What are they? A little theory Guvnor Demo2
  3. 3. What are they? http://images.wellcome.ac.uk/indexplus/image/V0041734.html3
  4. 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 analysis4
  5. 5. What are they? http://commons.wikimedia.org/wiki/File:Formal_Place_Setting_12_Course_Dinner.jpg5
  6. 6. What are they? Sections Conditions Condition states stub Actions Action states stub Rule identifiers6
  7. 7. What are they? Layouts - horizontal7
  8. 8. What are they? Layouts - vertical8
  9. 9. A little theory Extended Entry9
  10. 10. A little theory Limited Entry10
  11. 11. A little theory http://www.flickr.com/photos/ctbto/4926598654/in/photostream/11
  12. 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. 13. A little theory http://www.flickr.com/photos/marcovdz/4520986339/in/photostream/13
  14. 14. A little theory Contracted form Contraction is the first optimization Stage 1 – impossible matches Stage 2 – merge condition states14
  15. 15. A little theory Contraction – impossible conditions15
  16. 16. A little theory Contraction – merge condition states16
  17. 17. A little theory http://www.flickr.com/photos/worldseriesboxing/6334574625/sizes/z/in/photostream/17
  18. 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 Drools18
  19. 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 Facts19
  20. 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 match20
  21. 21. A little theory http://www.flickr.com/photos/kmakice/4713798045/sizes/m/in/photostream/21
  22. 22. A little theory Validation and verification Completeness Redundancy Conflict Deficiency22
  23. 23. Guvnor23
  24. 24. Guvnor Flexible authoring environment Extend or Limited Entry Automatic expansion V&V Import from Excel24
  25. 25. And now for something completely different...25
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×