[rules-users] Temporal operators fail on persisted SKS
Mark Proctor
mproctor at codehaus.org
Tue Oct 11 14:14:16 EDT 2011
Please don't "reply" to an existing thread to start a new thread.
The 5.3 release toing out today/tomorrow adds the temperal facilities to
persistence. Try it and get back to us with issues.
Mark
On 11/10/2011 18:51, Melton, Michael P CTR SPAWARSYSCEN-ATLANTIC, 01200
wrote:
> Hello,
> 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".
> 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 are events when the session is persisted or rehydrated.
> 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.
> Mike
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111011/03a8633f/attachment.html
More information about the rules-users
mailing list