<div dir="ltr">Hello,<br><br><br>The dataModel is as following:<br><br>class AgeRange() {<br>Integer code;<br>int minAge;<br>int maxAge;<br>}<br><br>Campaign() {<br>List&lt;Integer&gt; listOfAgeRangeCodes;<br>}<br><br>Subscriber() {<br>
int age;<br>}<br><br>AgeRange()&#39;s and Campaign()&#39;s are pre-populated into the WM.<br>Subscriber() is asserted right before fireAllRules is called.<br><br>I need a rule that would allow me to check if Subscriber() is within one of the defined on the Campaign() AgeRange()&#39;s.<br>
<br>What would be the most efficient way to enforce this constraint? <br>The other possibility I see is to store the list of AgeRange()&#39;s in each Campaign() and then use eval() to iterate over the list...<br><br><br>Advice and ideas are appreciated.<br>
<br><br>Thank you,<br>Maxim.<br>-- <br>Cheers, <br>Maxim Veksler<br><br>&quot;Free as in Freedom&quot; - Do u GNU ?<br>
</div>