Superficially, his is a bug in XmlDumper, but it cuts a little deeper - first look I don&#39;t see that the internal representation of String values such as &quot;null&quot; or &quot;true&quot; or &quot;false&quot; is possible for literal constraints. (I&#39;ll open a JIRA forthwith.)<br>
<br>You have these two options as a workaround:<br><br>(1) Create a<br>   global String strnull<br>and initialize it with the String &quot;null&quot;<br>   ksession.setGlobal( &quot;strnull&quot;, &quot;null&quot; );<br><br>
(2) Use<br>   keyValue== (&quot;null&quot;)<br>which Xml-dumps into a different (correct) representation.<br><br>-W<br><br><br><div class="gmail_quote">On 25 February 2011 02:32, Christina Lau <span dir="ltr">&lt;<a href="mailto:lau.christina@hit.com.hk">lau.christina@hit.com.hk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Dear all,<br>
<br>
My system is transforming internal data structure to drools rule language<br>
XML file. For particular evaluation on a string field, how can I do so<br>
happen the evaluating value is one of the keywords?<br>
<br>
For example,<br>
<br>
I need to check if<br>
        keyValue==&quot;null&quot;<br>
<br>
In rule language in XML, through the XmlDumper,<br>
        &lt;field-constraint field-name=&quot;keyValue&quot;&gt;<br>
                    &lt;literal-restriction evaluator=&quot;==&quot; value=&quot;null&quot; /&gt;<br>
<br>
However, this is the same for evaluation of<br>
        keyValue==null  //check if keyValue is null or not<br>
<br>
<br>
Would someone know how to tell the engine the different scenario in rule<br>
language XML file,<br>
    evaluate on the content, and<br>
    nullable of the field?<br>
<br>
Thanks a lot for your help<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Question-about-in-XML-literal-restriction-on-null-value-tp2572293p2572293.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Question-about-in-XML-literal-restriction-on-null-value-tp2572293p2572293.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<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>