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

Rule compiler does not fail for misspelled sliding window predicates

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.4.1.Final
    • 7.3.0.Final
    • core engine
    • None
    • 2017 Week 34-35
    • NEW
    • NEW

      Rule engine compiles the following DRL with no exception, despite the erroneous expression window:len.
      From behavior, it seems that the last part of the condition is simply disregarded.

      rule "Risky Event"
      no-loop 
      
      	when
      		$plcEvent: PLCEvent( input2 > 10.0 ) over window:len(3)
      	then
      		insert(new RiskyEvent($plcEvent));
      				
      end
      

              mfusco@redhat.com Mario Fusco
              mfusco@redhat.com Mario Fusco
              Tibor Zimányi Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: