<div dir="ltr">Hello List,<br><br><br>In my rules I have something like this :<br><br> // Locate age group(s) subscriber is categorized within.<br> eval ($f.getCampaign().getAgeRangeGroups() == null || $subscriberAge != null) and AgeRange(lowValue <= $subscriberAge, highValue >= $subscriberAge, ageRangeCode : code)<br>
<br>This does not work! <br><br><br>What should have been written above is :<br><br>1. If Campaign has no AgeRangeGroups() then do not seek AgeRange groups and simply continue to the next constraint, otherwise -> Campaign has age groups, now make sure subscriber is not null and then follow on to find all matching age groups for this subscriber.<br>
<br>How can the above be expressed in the drl file?<br>I'm having problems both with the NullPointerExceptions and with the logic not working are requested.<br><br>Is using null as the default pass condition is wise? If not could you please suggest the correct alternative?<br>
<br>Thank you,<br>Maxim.<br><br><br>-- <br>Cheers, <br>Maxim Veksler<br><br>"Free as in Freedom" - Do u GNU ?<br>
</div>