<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
a drl can contain both updates and retracts, you should not update(..)
a retracted facted.<br>
<br>
Mark<br>
Sikkandar Nawabjan wrote:
<blockquote
 cite="mid:CD08246E5BBE464D96B2F5E8C00C7FA401CC1669@TRVMSG.ustr.com"
 type="cite">
  <pre wrap="">Hi,

This exception is not throwing very often. Occasionally i got this FactException . Is it because of another rule/Fact? i have the following rule also

 rule "check created error"

 dialect "mvel"

 salience 100000

 no-loop true

 when

      $add:Address(continent=="asia")

 then
    retract( $add)
 

can't a drl file contain both update and retract together? if both rules satisfy the facts  what will happen for the handle?

 

Thanks and Regs,

Basha

 

Sikkandar Nawabjan wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">
Hi,

I have rule like this

rule "Update Id"

dialect "mvel"

salience 100000

no-loop true

when

     $add:Address(name=="india")

then

$add.setId("100");

update($add)

end
 
    </pre>
  </blockquote>
  <pre wrap=""><!---->That should work, its a fairly trivial use case, so I'm very surprised
it doesn't.... If you are suare this isn't working for you, can you open
a jira  with a minimal self contained test project showing  the error.
  </pre>
  <blockquote type="cite">
    <pre wrap="">am getting the error org.drools.FactException: Update error: handle not found for object

    </pre>
  </blockquote>
  <pre wrap=""><!---->

  </pre>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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>
</body>
</html>