<br>   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:<br>
<br>java.lang.ClassCastException: org.drools.common.DefaultFactHandle cannot be<br><div id=":10o" class="ii gt">
cast to org.drools.common.EventFactHandle
        at
org.drools.rule.SlidingTimeWindow.updateNextExpiration(SlidingTimeWindow.java:192)<br><br>   Can you double check your rules to make sure you are not doing that?<br><br>   Edson<br><br><br></div><br><br><div class="gmail_quote">
2010/2/10 paulB <span dir="ltr">&lt;<a href="mailto:paul.borlin@sironahealth.com">paul.borlin@sironahealth.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I&#39;m not sure if I had stumped everyone, or my previous post a really dumb<br>
thing for me to ask.  If it&#39;s something where I should have read the manual,<br>
can anyone give me a hint?  Thanks!<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n3.nabble.com/Events-facts-in-process-constraints-tp187826p198442.html" target="_blank">http://n3.nabble.com/Events-facts-in-process-constraints-tp187826p198442.html</a><br>
</font><div><div></div><div class="h5">Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>