Hi,<br>I have a simple drl written using the eclipse drools editor. <br>-----------<br>package com.x.workflow<br>import com.x.api.dto.User;<br>rule "validate_user"<br> when<br> userX : User(getName().equals("test123"))<br>
then<br> userX.setDescription("changed in workflow)";<br> System.out.println("user is test123");<br>end<br>--------<br>The editor does not flag any errors, but, when I run the workflow through my webapp, I see the following error :<br>
Rule Compilation error : [Rule name='validate_user']<br> com/x/workflow/Rule_validate_user.java (7:439) : Syntax error, insert ")" to complete Expression<br><br>904224 [tomcat-http--51] ERROR org.activiti.engine.impl.interceptor.CommandContext - Error while closing command context<br>
java.lang.IllegalArgumentException: Could not parse knowledge.<br> at org.drools.builder.impl.KnowledgeBuilderImpl.newKnowledgeBase(KnowledgeBuilderImpl.java:67)<br> at org.activiti.engine.impl.rules.RulesDeployer.deploy(RulesDeployer.java:61)<br>
<br><br>the java file Rule_validate_user.java is not written by me, in fact I cannot locate it in my source.<br>It appears it is generated by drools engine. <br>And, I cannot find what is wrong with my drl file from the error printed.<br>
<br>Appreciate any pointers.<br>thanks<br>sapra <br>