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

misleading error of Impossible match

XMLWordPrintable

    • Undefined
    • NEW
    • NEW

      I want to create a table that discriminate adult from minor.
      I followed the wizard and the table works as expected tested with SceSim and client REST.

      The rules correspond to the way I'd do anyway using DRL:

      package com.myspace.test20210331;
      
      //from row number: 1
      rule "Row 1 MyRules"
      	dialect "mvel"
      	when
      		p : Person( age < 18 )
      	then
      		modify( p ) {
      				setMinor( true )
      		}
      end
      
      //from row number: 2
      rule "Row 2 MyRules"
      	dialect "mvel"
      	when
      		p : Person( age >= 18 )
      	then
      		modify( p ) {
      				setMinor( false )
      		}
      end
      

      Despite, it errors on the editor:

              trikkola Toni Rikkola
              mmortari@redhat.com Matteo Mortari
              Jozef Marko Jozef Marko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: