[rules-users] NullPointerException with Wrapper objects

Shabbir Dhari sdhari at hotmail.com
Wed May 13 18:27:41 EDT 2009






Thanks to
all.



The problem we have is that rules will be code by business user. As a developer
I don’t mind putting null check on every rule. But for business user its
unacceptable for checking null for the same attribute in around 50 rules. 



Shannon, can you please elaborate more about your
solution or if possible post some simple code?

> Date: Wed, 13 May 2009 08:28:53 -0700
> From: greg_barton at yahoo.com
> Subject: RE: [rules-users] NullPointerException with Wrapper objects
> To: rules-users at lists.jboss.org
> 
> 
> Well, like Wolfgang said, good luck with that. :)  The only rules engine I know that does this is Tibco BusinessEvents, and it's accomplished by making a copy of your objects before inserting them into working memory.  
> 
> >From this forum post I'm guessing JRules doesn't do it: http://forums.ilog.com/brms/index.php?topic=1439.0
> 
> And probably Blaze Advisor doesn't do it either:
> http://discuss.fico.com/blaze/board/message?board.id=Blaze_Advisor_Users_Forum&message.id=591
> 
> So, I'm thinking you're stuck with having to do null checks.
> 


_________________________________________________________________
View photos of singles in your area Click Here
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fdating%2Eninemsn%2Ecom%2Eau%2Fsearch%2Fsearch%2Easpx%3Fexec%3Dgo%26tp%3Dq%26gc%3D2%26tr%3D1%26lage%3D18%26uage%3D55%26cl%3D14%26sl%3D0%26dist%3D50%26po%3D1%26do%3D2%26trackingid%3D1046138%26r2s%3D1&_t=773166090&_r=Hotmail_Endtext&_m=EXT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090513/5f0a8fd6/attachment.html 


More information about the rules-users mailing list