<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:12pt"><div>Hi<span style="font-style: italic;"><br><br>I use Drools 5.01<br><br></span>I have the following rules:<br> <span style="font-style: italic;"><br>rule "Reload test" salience 10000</span><br style="font-style: italic;"><span style="font-style: italic;"> when</span><br style="font-style: italic;"><span style="font-style: italic;"> $result: Result( $resultId:resultId)</span><br style="font-style: italic;"><span style="font-style: italic;"> not (exists Test(resultId.technicalId==$resultId.technicalId))</span><br style="font-style: italic;"><span style="font-style: italic;"> then</span><br style="font-style: italic;"><span style="font-style: italic;"> Test
test = createTest($resultId);</span><br style="font-style: italic;"><span style="font-style: italic;"> insert(test);</span><br style="font-style: italic;"><span style="font-style: italic;">end </span><br><br><span style="font-style: italic;">When I </span>insert two results with the same identifier, rules is applyed 2 times. One for each result. I do not understand why. <br><br>Do you have an idea of what's happen and how to guratantee that myl rules will not be applied twice. Here order is not important ...<br><br>Thanks<br><span style="font-style: italic;"></span></div>
</div><br>
</body></html>