Title: CARTE DE VISITE
And what is your "technical id" ?
This one must be unique by resultId, so why don't you use this
resultId to identify your Test objects ?
Le 08/11/2010 10:44, J-C Walmetz a écrit :
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
--
Vincent LEGENDRE
Consultant Sénior
EURODECISION
9A rue de la Porte de Buc 78000 VERSAILLES
Tél. : +33 (0)1 39 07 12 40
Direct : +33 (0)1 39 07 26 16
www.eurodecision.com
|
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users