• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Buenos Aires Decision Table presentation
 

Buenos Aires Decision Table presentation

on

  • 1,830 views

 

Statistics

Views

Total Views
1,830
Views on SlideShare
1,830
Embed Views
0

Actions

Likes
1
Downloads
83
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Buenos Aires Decision Table presentation Buenos Aires Decision Table presentation Presentation Transcript

    • Michael Anstis Decision Tables & Guvnor
    • Agenda
      • Introduction
      • Types
      • Validation & Verification
      • Transformation
      • What is Guvnor?
      • Decision Tables in Guvnor
      • Roadmap
      • Summary
      • Q&A
    • Agenda
      • Introduction
      • Types
      • Validation & Verification
      • Transformation
      • What is Guvnor?
      • Decision Tables in Guvnor
      • Roadmap
      • Summary
      • Q&A
    • Agenda Some decisions are simple
    • Introduction - Some decisions are simple Should I fly to Buenos Aires?
    • Introduction - Some decisions are simple I want to treat myself
    • Introduction - Some decisions are simple
    • Agenda Some decisions are complex
    • Introduction - Some decisions are complex What insurance premium should I charge?
    • Introduction - Some decisions are complex
      • Business considerations
        • Applicant's age
        • Applicant's experience
        • Sailing qualifications
        • Value of vessel
        • Type of cover
    • Introduction - Some decisions are complex
      • Business considerations
        • Applicant's age
          • Only insure people over 25 years of age
          • If less than 35 add 10% surcharge
          • If less than 45 add 5% surcharge
    • Introduction - Some decisions are complex
      • Business considerations
        • Applicant's experience
          • If sailing < 5 years then charge +10%
        • Sailing qualifications
          • None charge +100%
      • Etc...
    • Introduction - Enter the decision table
      • Extract of decision table
    • Introduction - Overview
      • Tabular representation of decisions.
      • Compact way to model large sets of related rules.
      • The state of a number of conditions determines the execution of a set of actions.
      • Many variations of the decision table concept exist which look similar at first sight.
    • Agenda
      • Introduction
      • Types
      • Validation & Verification
      • Transformation
      • What is Guvnor?
      • Decision Tables in Guvnor
      • Roadmap
      • Summary
      • Q&A
    • Types
        Types
        • Layout
              • Sections
              • Horizontal
              • Vertical
              • Limited entry
              • Extended entry
        • Categorisation
              • Expanded form, contracted form
              • Multi-hit, all hits
              • Multi-hit, first hit
              • Single hit
    • Layouts
        Sections
      Conditions stub Actions stub Action states Condition states Rule identifiers
    • Layouts
        Sections
    • Layouts
        Horizontal
    • Layouts
        Vertical
    • Layouts
        Limited entry
    • Layouts
        Extended entry
    • Categorisation
        Expanded form
      • Single column for every condition combination
      • The number of columns should equal the product of the number of states for every condition.
        • e.g. 2 conditions, one with 3 states the second with 2 states gives:
      2 * 3 = 6 combinations
    • Categorisation
        Expanded form (continued)
      • Condition states should be discretized
        • e.g. age: <18, 18-35, 36-60, >60 not a free-form integer field
      • Discretization should cover entire domain range
        • e.g. GOOD: age<18, age>=18; BAD: age<18, age>=30
        • Not essential for expansion but ensures completeness
      • This guarantee of completeness of condition combinations is one of the main advantages of decision tables.
    • Categorisation
        Expanded form (continued)
    • Categorisation
        Contracted form
      • Contraction is the first optimisation.
      • Reduces the number of condition columns.
      • If the same actions exist for rules covering all condition states for a given condition they can be combined and the condition state becomes irrelevant.
    • Categorisation
        Contracted form – stage 1 Rules 2 and 3 are impossible conditions
    • Categorisation
        Contracted form – stage 2 Merge adjacent column groups with identical action parts
    • Categorisation
        Multi-hit, all hits
      • To get complete result all rules matching need to have their actions executed.
      • Condition columns are not mutually exclusive
      • If the Condition columns are not exclusive, some combination of conditions are present in more than one column, which may lead to ambiguity or inconsistency.
    • Categorisation
        Multi-hit, 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
    • Categorisation
        Multi-hit, first hit
      • To get complete result the first rule (from left-to-right) matching needs to have its action executed.
      • Condition columns are not mutually exclusive.
      • If the Condition columns are not exclusive, some combination of conditions are present in more than one column, which may lead to ambiguity or inconsistency.
    • Categorisation
        Multi-hit, 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
    • Categorisation
        Single hit
      • Each possible combination of conditions matches exactly one, and only one, rule.
      • Condition columns are mutually exclusive
      • As the Condition columns are exclusive; combinations of conditions cannot be present in more than one column which eliminates ambiguity and inconsistency.
      • Classic form if Single-hit is &quot;expanded decision table&quot;; but this can be optimised or “contracted”.
    • Categorisation
        Single hit
      Given a 35 year old with 15 years service 1. Rule 3 matches, giving 25 days 2. No other rules match
    • Agenda
      • Introduction
      • Types
      • Validation & Verification
      • Transformation
      • What is Guvnor?
      • Decision Tables in Guvnor
      • Roadmap
      • Summary
      • Q&A
    • Validation & Verification
      • Redundancy
      • Ambivalence (conflicting)
      • Deficiency
      • Mitigation
    • Validation & Verification
      • Redundancy
      • Duplication
      • Subsumption
        • Two rules have the same actions, but one contains additional conditions in which it will succeed. Whenever the more restrictive rule succeeds, the less restrictive rule also succeeds, resulting in redundancy.
      • Impossible conditions
        • Conditions that do not make sense (e.g. age < 0)
    • Validation & Verification
      • Redundancy - Subsumption
    • Validation & Verification
      • Ambivalence
      • Contradictory rules
        • Two (or more) rules have the same conditions but with different actions.
      • Conflicting rules
        • An action for one rule is the opposite of the same action for the other rule.
      • Ambiguous rules
        • The actions are different but not opposite.
    • Validation & Verification
      • Ambivalence
        • Premium is £500 if applicant age is less than 30
        • Premium is £300 if Years Without Claim is greater than or equal to 10 years.
        • Applicant is 29, premium is £500
        • Applicant has 12 years without claim, premium is £300
        • Applicant is 29 with 12 years without claim, premium is ?!?
    • Validation & Verification
      • Deficiency
      • Missing rules
        • A situation exists in which a particular action is required, but there is no rule that succeeds in that situation and produces the desired conclusion.
      • Unused input state or domain attribute
      • Missing knowledge
        • The absence of some essential elements from the problem situation.
    • Validation & Verification
      • Mitigation – redundancy
      • Duplication
      • Cannot occur in the Single-hit decision table, because columns do not overlap.
      • Subsumption
      • Cannot occur in the Single-hit decision table, because columns do not overlap.
      • Impossible conditions
      • Impossible combinations may still exist.
    • Validation & Verification
      • Mitigation - ambivalence
        The single-hit table format avoids such conflicts.
        • Premium is £500 if applicant age is less than 30
        • Premium is £300 if Years Without Claim is greater than or equal to 10 years.
        • Applicant is 29 with 12 years without claim, premium is £300
    • Validation & Verification
      • Mitigation - deficiency
      • Missing rules
        • Expanded decision table is exhaustive
        • All combinations of condition states are included
      • Unused input state or domain attribute
        • Expanded decision table is exhaustive
        • All combinations of condition states are included
      • Missing knowledge
        • Validation of domain model by domain expert
    • Agenda
      • Introduction
      • Types
      • Validation & Verification
      • Transformation
      • What is Guvnor?
      • Decision Tables in Guvnor
      • Roadmap
      • Summary
      • Q&A
    • Transformation
      • Decision Trees
      • Requirements
          • Discretized condition states
          • Each Condition in a column becomes a branch
      • Multi-hit
        • Walk every path through tree
      • Single-hit
        • Walk single path through tree
    • Transformation
      • Example - Decision Table
    • Transformation
      • Example - Decision Tree
    • Transformation
      • Paying attention?
      • Rules 1, 2 and 3, 4 have the same action no matter what the state of “Hungry”. Therefore they can be contracted...
    • Agenda
      • Introduction
      • Types
      • Validation & Verification
      • Transformation
      • What is Guvnor?
      • Decision Tables in Guvnor
      • Roadmap
      • Summary
      • Q&A
    • What is Guvnor?
      • Asset management system
    • What is Guvnor?
      • Asset authoring environment
    • What is Guvnor?
      • Asset quality assurance provider
    • What is Guvnor?
      • Asset compilation service
    • Agenda
      • Introduction
      • Types
      • Validation & Verification
      • Transformation
      • What is Guvnor?
      • Decision Tables in Guvnor
      • Roadmap
      • Summary
      • Q&A
    • Decision Tables in Guvnor
      • What do we currently provide?
      • Vertical layout
      • Multi-hit, all hits
      • Extended entry
      • Discretized condition states (enumerated fields)
      • New decision table editor
        • Foundation for future work
        • Condition and rule negation
        • Cell merging
        • Cell grouping
    • Decision Tables in Guvnor
      • What do we currently provide?
        Cell merging
    • Decision Tables in Guvnor
      • What do we currently provide?
        Cell grouping
    • Decision Tables in Guvnor
      • Generation of DRL
      • Each row compiles into a separate DRL rule
    • Decision Tables in Guvnor
      • Generation of DRL
      • Each row compiles into a separate DRL rule
      • rule &quot;Row 1 dtable&quot;
      • dialect &quot;mvel&quot;
      • when
      • $person : Person( age < &quot;18&quot; )
      • then
      • $person.setHolidayEntitlement( 27 );
      • end
      • rule &quot;Row 2 dtable&quot;
      • dialect &quot;mvel&quot;
      • when
      • $person : Person( age >= &quot;18&quot; , age < &quot;45&quot; , lengthOfService < &quot;15&quot; )
      • then
      • $person.setHolidayEntitlement( 22 );
      • end
    • Decision Tables in Guvnor
      • What do we currently provide?
      • Video demonstration
        • Demonstration available online at http://vimeo.com/21438537
    • Agenda
      • Introduction
      • Types
      • Validation & Verification
      • Transformation
      • What is Guvnor?
      • Decision Tables in Guvnor
      • Roadmap
      • Summary
      • Q&A
    • Roadmap
      • What does the future hold?
      • Provision of other layouts
        • Horizontal
        • Limited entry
      • Automated optimisation
      • Improved support for digitised condition states
      • Integration of V&V providing visual feedback
      • Pluggable editors for Model Fact Types
      • Usability enhancements
    • Agenda
      • Introduction
      • Types
      • Validation & Verification
      • Transformation
      • What is Guvnor?
      • Decision Tables in Guvnor
      • Roadmap
      • Summary
      • Q&A
    • Summary Decision Tables
      • Are an important tool for modelling decisions
      • Provide a simple, yet powerful, visualisation of decision components
      • Allow large sets of related rules to be easily worked upon simultaneously
      • Provide the means to easily validate and verify rules
      Guvnor
      • Existing capabilities suitable for most
      • A solid foundation for the future
      • A roadmap to become the market leader
    • Agenda
      • Introduction
      • Types
      • Validation & Verification
      • Transformation
      • What is Guvnor?
      • Decision Tables in Guvnor
      • Roadmap
      • Summary
      • Q&A
    • Useful links
      • Project
        • http://www.jboss.org/drools
      • Reference Manual
        • http://www.jboss.org/drools/documentation.html
      • Blog
        • http://blog.athico.com/
      • Mailing Lists
        • http://www.jboss.org/drools/lists.html
    • Michael Anstis Decision Tables & Guvnor