Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
None
Description
Below is a fully self-contained DRL that compiles correctly but runs into a runtime error when the LHS of rule "match" is evaluated. The "culprit" is the test "this != $c", but one would expect simply a true result from the comparison.
declare Person name: String end declare Customer extends Person rating: int end declare Employee extends Person wage: int end rule initphone salience 100 when then insert( new Customer( "Joe", 100 ) ); insert( new Employee( "Paul", 2100 ) ); end rule match when $c: Customer() $e: Employee( this != $c ) then System.out.println( "c/e " + $c + " " + $e ); end