[rules-users] Eval0Invoker : java.lang.NullPointerException

Michael Anstis michael.anstis at gmail.com
Thu Dec 15 11:44:45 EST 2011


Yes, you should not be using globals to hold information you want to reason
over.

You can try re-writing the combined check to something like this:-

rule "Customer and Service Context null check rule"
no-loop true
salience 1000
       when
               not ( Customer() and ServiceContext() )
       then
               throw new MissingEntryFault("Customer and ServiceContext are
both required");
end

On 15 December 2011 16:30, Venkat <ven12344 at yahoo.com> wrote:

> Hi Manstis, so you are saying that I don't need a global variable at all,
> and
> also the customer and service check should be on the same rule, I cannot
> right both separate.
>
> Please tell me how to write that.
>
> Thanks,
> Venkat.
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Eval0Invoker-java-lang-NullPointerException-tp3586222p3589136.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111215/84d50594/attachment.html 


More information about the rules-users mailing list