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
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to