Re: [rules-users] Fusion [Error]- java.lang.ClassCastException: org.drools.common.DefaultFactHandle cannot be cast to org.drools.common.EventFactHandle

2009-11-10 Thread Chetan Mahadev
Hi Edson, Salaboy, Just to explain what I meant in my previous mail... This is wat we are doin... We are inserting a EligibleAlert in one of the rules like this.This is a seperate drl file.. I tried declaring EligibleAlert as an event in this .drl file. rule "process pending sympathetic alert"

Re: [rules-users] Fusion [Error]- java.lang.ClassCastException: org.drools.common.DefaultFactHandle cannot be cast to org.drools.common.EventFactHandle

2009-11-09 Thread Chetan Mahadev
We have few .drl files where we are inserting EligibleAlert into working memory. Should we declare with @role(event) in all the files or only once anywhere?? Currently I have declared it as an @role(event) in the current drools file where I am applying temporal reasoning. Is tht only sufficient..

Re: [rules-users] Fusion [Error]- java.lang.ClassCastException: org.drools.common.DefaultFactHandle cannot be cast to org.drools.common.EventFactHandle

2009-11-09 Thread Edson Tirelli
Assuming this is the offending rule, for some reason, Drools is not interpreting EligibleAlert as an "event". You need to double check your code to make sure it is declared with @role( event ) as previously mentioned by Mauricio. []s Edson 2009/11/9 Chetan Mahadev > Etirelli, > > So u

Re: [rules-users] Fusion [Error]- java.lang.ClassCastException: org.drools.common.DefaultFactHandle cannot be cast to org.drools.common.EventFactHandle

2009-11-09 Thread Chetan Mahadev
Etirelli, So u mean to say, some other rule is causing the problem? I have this rule which uses events from entry-point after it is being inserted in my earlier rule.. rule "testRule" no-loop true when $eventSignature : EventSignature($list : syslogmnemonicList, totalevents == "2") $e

Re: [rules-users] Fusion [Error]- java.lang.ClassCastException: org.drools.common.DefaultFactHandle cannot be cast to org.drools.common.EventFactHandle

2009-11-09 Thread Edson Tirelli
The stack trace shows the problem is happening in a use of the "after" evaluator: 2009-11-09 15:02:00,676 FATAL pool-2-thread-1 LogStream - at org.drools.base.evaluators.AfterEvaluatorDefinition$AfterEvaluator.evaluateCachedRight(AfterEvaluatorDefinition.java:321) So, the attached ru

Re: [rules-users] Fusion [Error]- java.lang.ClassCastException: org.drools.common.DefaultFactHandle cannot be cast to org.drools.common.EventFactHandle

2009-11-09 Thread Mauricio Salatino
Probably the problem is that you are not using the: from entre-point "EVENT SIGNATURE STREAM" In the $p : EligibleAlert($a : alert, $a.eventSignatureProcessingStatus!="TRUE" ) from entre-point "EVENT SIGNATURE STREAM" 2009/11/9 Chetan Mahadev > Hi Mauricio,, > > I have already declared it as an

Re: [rules-users] Fusion [Error]- java.lang.ClassCastException: org.drools.common.DefaultFactHandle cannot be cast to org.drools.common.EventFactHandle

2009-11-09 Thread Chetan Mahadev
Hi Mauricio,, I have already declared it as an event as shown below... yet it cribs declare EligibleAlert @role( event ) //@expires(90s) end rule "Check if EligibleAlert is an Signature Event" agenda-group "enrichment" auto-focus true //salience 100 no-loop true when $lis

Re: [rules-users] Fusion [Error]- java.lang.ClassCastException: org.drools.common.DefaultFactHandle cannot be cast to org.drools.common.EventFactHandle

2009-11-09 Thread Mauricio Salatino
Hi, Did you do something like: declare EligibleAlert @role(event) end in your DRL? you need to declare which facts are events. 2009/11/9 Chetan Mahadev > > Hi I am getting the following error while inserting into the entrypoint. > > rule "Check if EligibleAlert is an Signature Event" > agenda-

[rules-users] Fusion [Error]- java.lang.ClassCastException: org.drools.common.DefaultFactHandle cannot be cast to org.drools.common.EventFactHandle

2009-11-09 Thread Chetan Mahadev
Hi I am getting the following error while inserting into the entrypoint. rule "Check if EligibleAlert is an Signature Event" agenda-group "enrichment" auto-focus true no-loop true when $list : EventSignatureList(); $p : EligibleAlert($a : alert, $a.eventSignatureProcessingStatus!="TRUE" )