[rules-users] Simple Disjunction Question

thomas.polzin at gmail.com thomas.polzin at gmail.com
Thu Feb 3 15:55:27 EST 2011


Hi there

Assume we have a rule like this:

when

$a : A(a==1)
or
($b : B(b==1) and $c : C(c==1))

then

do($a)
do($b)
do($c)

end


Assuming also, that for some reason I do not want to split this rule into  
two.
Then, I get a NullPointer exception because either $a or $b and $c are not  
defined.
Is there a way to catch or check for this.

Thanks so much for any help

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110203/96a1aefa/attachment.html 


More information about the rules-users mailing list