[rules-users] problems using the from

hypnosat7 ablarbi at yahoo.fr
Tue Aug 7 07:06:30 EDT 2007


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.




More information about the rules-users mailing list