Hello,
I'm trying to construct a rule in drool V4 that contains an eval with a
literal string that may contain embedded quotes. I've tried escaping the
quote but get the error below. Note that the \" works outside an eval.
rule "evalList2"
when
Var( eval( "tt".equals("t\"t")))
then
System.out.println( "evalList2" );
end
Error:
java.lang.NullPointerException:
at
org.drools.rule.PredicateConstraint.createContextEntry(PredicateConstraint.java:201)
at org.drools.reteoo.AlphaNode.createMemory(AlphaNode.java:230)
...
It looks like a change was made to V3 to fix this but doesnt appear to work
in V4, does anyone know how to construct this type of rule?
Thanks in advance
Sam
--
View this message in context:
http://www.nabble.com/problem-escaping-quote-in-eval.-tp19254011p19254011...
Sent from the drools - user mailing list archive at
Nabble.com.