Omit the generic parameters . see previous email
-W
On 5 January 2012 08:15, gg <gagan.gautam(a)gmail.com> wrote:
This is my rules file and its throwing this error:
[ isContained : unable to resolve type while building function
]
--------------------------------------------------------------------------------
package com.sample
import com.sample.DroolsTest.Message;
import com.sample.DroolsTest.Result;
import com.sample.DroolsTest.Discount;
import java.util.Arrays;
import java.util.List;
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
Thanks,
--GG
--
View this message in context:
http://drools.46999.n3.nabble.com/Uable-to-reolve-type-tp3634048p3634048....
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users