Prageet Dak

Handling of date in Builder

Discussion created by Prageet Dak on May 20, 2011
Latest reply on May 25, 2011 by Jostein Ulseth

Hi,

 

I have my java object model in which certain classes are containing date fields.Inside those classes I have initialized in constructor each individual date as null. Now when I am inovking my rule service through EJB deployment, I am passing some parameters to test it. If I do not pass date in the class then it throws me evaluation error. On the other hand  I am checking in the rule(in builder )

 

if (date <> null) then proceed,

 

but still it's not working, which in turn forcing me to set all the dates into the object. It may happen that some of the dates may not come as all the dates are not mandatory.

 

Can anyone help on this as to how to check inside rule??

 

Thanks

Prageet

Outcomes