Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-3283

Incorrect V&V results when operator is filled in the row (as opposed to column definition)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • 7.14.0.Final
    • None
    • 2018 Week 45-47, 2018 Week 48-50, 2019 Week 02-04, 2018 Week 51-01
    • NEW
    • NEW

      Imagine data model Person with attribute age.

      If you create decision table and add two columns:

      • both are defined against "age" attribute
      • none of them have operator defined

      then you add one row, and you fill in the operator and the value directly inside the row.
      For example:
      >= 20
      <= 30

      The generated DRL looks like this:

      package org;
      
      //from row number: 1
      rule "Row 1 AnotherTest"
      	dialect "mvel"
      	when
      		p : Person( age >= 20 , age <= 30 )
      	then
      		p.setAgeGroup( "whatever" );
      end
      
      

      The V&V will report this as conflicting row:

              trikkola Toni Rikkola
              trikkola Toni Rikkola
              Jozef Marko Jozef Marko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: