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

misleading error of Impossible match

    XMLWordPrintable

Details

    • Undefined
    • NEW
    • NEW

    Description

      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:

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: