[rules-users] Uable to reolve type
Wolfgang Laun
wolfgang.laun at gmail.com
Thu Jan 5 02:28:36 EST 2012
Omit the generic parameters . see previous email
-W
On 5 January 2012 08:15, gg <gagan.gautam at 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.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
More information about the rules-users
mailing list