<div dir="ltr">Hello List,<br><br><br>In my rules I have something like this :<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Locate age group(s) subscriber is categorized within.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; eval ($f.getCampaign().getAgeRangeGroups() == null || $subscriberAge != null) and AgeRange(lowValue &lt;= $subscriberAge, highValue &gt;= $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 -&gt; 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&#39;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>&quot;Free as in Freedom&quot; - Do u GNU ?<br>
</div>