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