[rules-users] Function Mismatch <eof>

gg gagan.gautam at gmail.com
Thu Jan 5 02:00:21 EST 2012


I have written this in my rules file: But I getting this error :

[29,0]: [ERR 102] Line 29:0 mismatched input '<eof>' in function
"isContained"
[0,0]: Parser returned a null Package
-----------------------------------------------------------------------------

function boolean isContained(List<String> plist, List<String> clist){
	boolean found = true;
	for(String s : clist){
		if (!plist.contains(s)){
		found = false;
	}
	return found;
}

 

rule "GoodBye"
    when
        m : Message(ls:ls, pids: productIds)
        l : List() from ls
        eval(isContained(pids,l))
    then
        System.out.println( "found" );
end


--
View this message in context: http://drools.46999.n3.nabble.com/Function-Mismatch-eof-tp3634033p3634033.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list