Hi,
  This is my rule :

#declare any global variables here
global MockServiceRepository service


rule "Your First Rule"
        
        when
                
                Variable($list : values ) from 
service.findVariableByName("njdn","dedkm")
                r : Rum(diagnostic  memberOf (value in $list))
        then 
                System.out.println("test From ok");
                
end

And this is the errors

        testFromPackage/Rule_Your_First_Rule_0.java (12:581) : value cannot be
resolved
        testFromPackage/Rule_Your_First_Rule_0.java (12:587) : Syntax error on
token "in", instanceof expected
        testFromPackage/Rule_Your_First_Rule_0.java (12:590) : $list cannot be
resolved to a type


I have a class Variable with a values property :
        private Set<VariableValue> values = new LinkedHashSet<VariableValue>();

And a class VariableValue with those properties :
        private String id;

        protected String value;

        private Variable variable;


-- 
View this message in context: 
http://www.nabble.com/problems-using-the-from-tf4229482.html#a12032198
Sent from the drools - user mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to