This sounds similar to an issue I experienced in 5.0.1 ( https://issues.jboss.org/browse/JBRULES-2375 ). What version of Drools are you using?
What do you mean by "...is stuck"?
Please post the complete flow of application logic, from session creation, explaining how you insert and run the engine, and how you track retractions and the "stuck".
-WOn 13 February 2011 14:13, rodih <roded.hess@gmail.com> wrote:
Hi,
I am new to CEP though I made a simple rule which which declares an event as
expires after few milliseconds.
If events are inserted into a stream and at the same time events are
retracted from the stream due to expiration, the application is stuck - Cant
insert any more events and no events are retracted.
declare StockEventWrapper
@role( event )
@expires(10s)
end
rule "Stock Event Buffer Rules"
dialect "java"
when
$stock : StockMotiveFactWrapper(timeAlerted == null)
$sew: StockEventWrapper(this.synonymContainedInTitle == true &&
$stock.stockId == this.stockId ,$stock.motiveTypeId == this.motiveTypeId)
over window:time(24h) from entry-point "STOCK_EVENTS"
then
System.out.println("Creating " + $stock.getStockId() + " " +
$stock.getMotiveTypeId());
modify($stock){
setTimeAlerted(new Date());
}
end
Any known issues? any ideas?
Thanks,
Rod
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/CEP-expires-an-event-cause-deadlock-tp2485482p2485482.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
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users