<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<Integer> listOfAgeRangeCodes;<br>}<br><br>Subscriber() {<br>
int age;<br>}<br><br>AgeRange()'s and Campaign()'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()'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()'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>"Free as in Freedom" - Do u GNU ?<br>
</div>