<br>   try using double \ inside evals and consequences... not sure if it will work, but try it out... this should all be fixed in drools 5.<br><br><div class="gmail_quote">2008/8/27 samlotti <span dir="ltr">&lt;<a href="mailto:samlotti@gmail.com">samlotti@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hello,<br>
<br>
I&#39;m trying to construct a rule in drool V4 that contains and eval and a<br>
literal string that may contain quotes. I&#39;ve tried escaping the quote but<br>
get the error below.  The \&quot; works outside an eval.<br>
<br>
rule &quot;evalList2&quot;<br>
        when<br>
                Var( eval( &quot;tt&quot;.equals(&quot;t\&quot;t&quot;)))<br>
        then<br>
                System.out.println( &quot;evalList2&quot; );<br>
end<br>
<br>
<br>
Error:<br>
java.lang.NullPointerException:<br>
        at<br>
org.drools.rule.PredicateConstraint.createContextEntry(PredicateConstraint.java:201)<br>
        at org.drools.reteoo.AlphaNode.createMemory(AlphaNode.java:230)<br>
           ...<br>
<br>
It looks like a change was made to V3 to fix this but doesnt appear to work<br>
in V4, does anyone know how to construct this type of rule?<br>
<br>
Thanks<br>
Sam<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://www.nabble.com/problem-escaping-quote-in-eval-tp19186015p19186015.html" target="_blank">http://www.nabble.com/problem-escaping-quote-in-eval-tp19186015p19186015.html</a><br>
Sent from the drools - user mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>