Hi,
I'm facing problem when I'm using Map and > Operator in condition section.
I'm using version 5.4.
this is my RULE:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
package resouces.rules
import java.util.*;
rule "Valid Age_BNG"
agenda-group "Check user Eligibility_BNG"
salience 1
no-loop true
when
map : Map()
eval(map.get("Age") > 18 )
then
map.put("Age_Validation",true);
update(map);
System.out.println("RULE : "+drools.getRule().getName() );
end
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
And error message :
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Rule Compilation error : [Rule name='Valid Age_BNG']
resouces/rules/Rule_Valid_Age_BNG_d2a9c84690ba457b900a0578788bdd23.java
(8:313) : The operator > is undefined for the argument type(s) Object, int
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-5-4-DRL-Issues-using-java-util-M...
Sent from the Drools: User forum mailing list archive at
Nabble.com.