Hi

I use Drools 5.01

I have the following rules:
 
rule "Reload test" salience 10000
    when
        $result: Result( $resultId:resultId)
        not (exists Test(resultId.technicalId==$resultId.technicalId))
    then
        Test test = createTest($resultId);
         insert(test);
end 

When I  insert two results with the same identifier, rules is applyed 2 times. 
One for each result. I do not understand why. 


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 ...

Thanks



      
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to