Hi,<br>My rules update the nested object attributes :eligibilityScore which is used in another rule downstream.<br><br>Only the Client object is sent as fact, the nested object is derived using the from keyword (list of services)<br>
<br>rule "Rule 8 EligibilityRating"<br> agenda-group "EligibilityRating"<br> no-loop true<br> salience 5<br> //dialect "mvel"<br> when<br> $client : Client(type == "Preferred")<br>
$policy : Service(productType == "Vehicle Insurance") from $client.service<br> then<br> System.out.println(" Rule 8 ER = type == preferred:"+ $policy.getId() + ": -50");<br>
int eScore = $policy.getEligibilityScore() - 50;<br> <b> $policy.setEligibilityScore(eScore);</b> // how to let the downstream rule know that this atribute value is updated without letting this current rule go into infinite loop<br>
end<br><br>Any suggestion is greatly appreciated<br><br>