This is my rule in .drl :

        when
                Clazz( studentName contains "Nhan" )
        then 
                System.out.println("Found");


This is the only field in class Clazz (with getters & setters):
        protected List<String> studentName;


And the following is the code to fire rule:

.............
           Clazz clazz = new Clazz();
            List<String> lis = new ArrayList<String>();
            lis.add("John");
            lis.add("George");
            lis.add("Nhan");
            clazz.setStudentName(lis);
      
            workingMemory.assertObject(clazz);

            workingMemory.fireAllRules();
    



But getting this exception on the last line (when firing rules):

!!!! An error occurred compiling the invoker:
[EMAIL PROTECTED]
org.drools.rule.InvalidRulePackage: Rule Compilation error rule.out cannot
be resolved to a type Syntax error on tokens, delete these tokens

        at org.drools.rule.Package.checkValidity(Unknown Source)



plz reply A.S.A.P.
thanx in advance
jojan






-- 
View this message in context: 
http://www.nabble.com/Rule-Compilation-error-rule.out-cannot-be-resolved-to-a-type-tf2459048.html#a6853705
Sent from the drools - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to