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 <[email protected]> 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
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to