<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    And what is your "technical id" ?<br>
    This one must be unique by resultId, so why don't you use this
    resultId to identify your Test objects ?<br>
    <br>
    <br>
    Le 08/11/2010 10:44, J-C Walmetz a écrit :
    <blockquote cite="mid:352542.53616.qm@web26707.mail.ukl.yahoo.com"
      type="cite">
      <style type="text/css"><!-- DIV {margin:0px;} --></style>
      <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>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <!--  @author Hadrien HUGOT -->
      <!-- Modèle signature thunderbird et autres  -->
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>CARTE DE VISITE</title>
      <span style="font-size: 13.5pt; font-family:
        &quot;Arial&quot;,&quot;sans-serif&quot;; color: rgb(21, 24,
        90);">Vincent LEGENDRE</span><br>
      <i><span style="font-size: 8.5pt; font-family:
          &quot;Arial&quot;,&quot;sans-serif&quot;; color: rgb(21, 24,
          90);">Consultant Sénior</span></i><br>
      <span style="font-size: 4.5pt;"> <br>
      </span>
      <span style="font-size: 9pt; font-family:
        &quot;Arial&quot;,&quot;sans-serif&quot;; color: rgb(21, 24,
        90);">EURODECISION<o:p></o:p></span><br>
      <span style="font-size: 9pt; font-family:
        &quot;Arial&quot;,&quot;sans-serif&quot;; color: rgb(21, 24,
        90);">9A rue de la Porte de Buc 78000 VERSAILLES<br>
        Tél. : +33 (0)1 39 07 12 40<br>
        Direct : +33 (0)1 39 07 26 16<br>
        <a href="www.eurodecision.com">www.eurodecision.com</a></span><br>
      <a href="http://www.eurodecision.com/"><span style="font-size:
          12pt; font-family: &quot;Times New
          Roman&quot;,&quot;serif&quot;; color: windowtext;
          text-decoration: none;"> <img
            src="cid:part1.03070601.04010703@eurodecision.com"
            alt="EURODECISION" border="no"></span></a><a
        href="http://www.eurodecision.com/"><span style="font-size:
          12pt; font-family: &quot;Times New
          Roman&quot;,&quot;serif&quot;; color: windowtext;
          text-decoration: none;"> </span></a>
    </div>
  </body>
</html>