Yes, you should not be using globals to hold information you want to reason over.<br><br>You can try re-writing the combined check to something like this:-<br><br>rule "Customer and Service Context null check rule"<br>
no-loop true<br>
salience 1000<br>
when<br>
not ( Customer() and ServiceContext() )<br>
then<br>
throw new MissingEntryFault("Customer and ServiceContext are both required");<br>
end<br><br><div class="gmail_quote">On 15 December 2011 16:30, Venkat <span dir="ltr"><<a href="mailto:ven12344@yahoo.com">ven12344@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Manstis, so you are saying that I don't need a global variable at all, and<br>
also the customer and service check should be on the same rule, I cannot<br>
right both separate.<br>
<br>
Please tell me how to write that.<br>
<br>
Thanks,<br>
<span class="HOEnZb"><font color="#888888">Venkat.<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Eval0Invoker-java-lang-NullPointerException-tp3586222p3589136.html" target="_blank">http://drools.46999.n3.nabble.com/Eval0Invoker-java-lang-NullPointerException-tp3586222p3589136.html</a><br>
</font></span><div class="HOEnZb"><div class="h5">Sent from the Drools: User forum 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>
</div></div></blockquote></div><br>