[rules-users] Events facts in process constraints

Edson Tirelli ed.tirelli at gmail.com
Wed Feb 10 12:00:29 EST 2010


   It is definitively possible to use events in process constraints. Your
exception, though, implies that you are using a sliding time window on a
fact type that is not declared as an event. In later versions I improved the
error handling to raise a compile time error when this is detected, but I
guess you are using 5.0.1, where it still throws a runtime exception:

java.lang.ClassCastException: org.drools.common.DefaultFactHandle cannot be
cast to org.drools.common.EventFactHandle        at
org.drools.rule.SlidingTimeWindow.updateNextExpiration(SlidingTimeWindow.java:192)

   Can you double check your rules to make sure you are not doing that?

   Edson




2010/2/10 paulB <paul.borlin at sironahealth.com>

>
> I'm not sure if I had stumped everyone, or my previous post a really dumb
> thing for me to ask.  If it's something where I should have read the
> manual,
> can anyone give me a hint?  Thanks!
> --
> View this message in context:
> http://n3.nabble.com/Events-facts-in-process-constraints-tp187826p198442.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100210/de125953/attachment.html 


More information about the rules-users mailing list