<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Please don't "reply" to an existing thread to start a new thread.<br>
    <br>
    The 5.3 release toing out today/tomorrow adds the temperal
    facilities to persistence. Try it and get back to us with issues.<br>
    <br>
    Mark<br>
    On 11/10/2011 18:51, Melton, Michael P CTR SPAWARSYSCEN-ATLANTIC,
    01200 wrote:
    <blockquote cite="mid:3274B87E-49A2-4E46-924F-F218A370223A@mimectl"
      type="cite">
      <div dir="ltr" id="idOWAReplyText80716">
        <div dir="ltr"><font color="#000000" face="Arial" size="2">Hello,</font></div>
        <div dir="ltr">&nbsp;</div>
        <div dir="ltr"><font color="#000000" face="Arial" size="2">I
            have a SKS that is persisted using JPAKnowledgeService. I am
            using events and have multiple rules that match on those
            events using the "after" and "before" temporal operators.
            When I have a fresh session, I can insert events and fire
            rules till the cows come home with no issue. However, if I
            load a persisted session containing event facts and try to
            insert a new event, when rule conditions attempt to evaluate
            on the *persisted* events in working memory, I get
            "org.drools.common.DefaultFactHandle cannot be cast to
            org.drools.common.EventFactHandle".</font></div>
        <div dir="ltr">&nbsp;</div>
        <div dir="ltr"><font face="Arial" size="2">I have googled
            extensively on this issue and, though it seems to be
            relatively common, none of the resolutions I've seen apply
            to me. I've doublechecked that my events are declared as
            such. I've debugged into Drools code and verified that the
            FactHandle returned upon insertion is an EventFactHandle.
            However, it seems as if the engine "forgets" that these
            facts&nbsp;are events when the session is persisted or
            rehydrated.</font></div>
        <div dir="ltr">&nbsp;</div>
        <div dir="ltr"><font face="Arial" size="2">I do not currently
            have a simple example to share, and I can work on one if
            required, but I wanted to get my question out ahead of that
            in case anyone in the community has an answer for me off the
            top of their head. Any assistance is appreciated.</font></div>
        <div dir="ltr">&nbsp;</div>
        <div dir="ltr"><font face="Arial" size="2">Mike</font></div>
        <div dir="ltr">&nbsp;</div>
        <div dir="ltr">&nbsp;</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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>