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.bor...@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@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > -- Edson Tirelli JBoss Drools Core Development JBoss by Red Hat @ www.jboss.com
_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users