The pbm solved when i checked it 2day morning! i dont even remember what's
the pbm!!

This is the complete drl:
------------------------------------------

package com.sample;

import com.sample.Clazz;

rule "SearchStudent"

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




Edson Tirelli-3 wrote:
> 
>    Jojan,
>   
>   Can you show us your full DRL? It seems there is some kind of 
> identifier conflict...
> 
>    []s
>    Edson
> 
> Joj wrote:
> 
>>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
>>
>>
>>
>>
>>
>>
>>  
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Rule-Compilation-error-rule.out-cannot-be-resolved-to-a-type-tf2459048.html#a6869213
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