What do you mean by "...is stuck"?<br><br>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".<br>
<br>-W<br><br><br><div class="gmail_quote">On 13 February 2011 14:13, rodih <span dir="ltr"><<a href="mailto:roded.hess@gmail.com">roded.hess@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi,<br>
I am new to CEP though I made a simple rule which which declares an event as<br>
expires after few milliseconds.<br>
If events are inserted into a stream and at the same time events are<br>
retracted from the stream due to expiration, the application is stuck - Cant<br>
insert any more events and no events are retracted.<br>
<br>
declare StockEventWrapper<br>
@role( event )<br>
@expires(10s)<br>
end<br>
<br>
rule "Stock Event Buffer Rules"<br>
dialect "java"<br>
when<br>
$stock : StockMotiveFactWrapper(timeAlerted == null)<br>
$sew: StockEventWrapper(this.synonymContainedInTitle == true &&<br>
$stock.stockId == this.stockId ,$stock.motiveTypeId == this.motiveTypeId)<br>
over window:time(24h) from entry-point "STOCK_EVENTS"<br>
then<br>
System.out.println("Creating " + $stock.getStockId() + " " +<br>
$stock.getMotiveTypeId());<br>
modify($stock){<br>
setTimeAlerted(new Date());<br>
}<br>
end<br>
<br>
Any known issues? any ideas?<br>
<br>
Thanks,<br>
Rod<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/CEP-expires-an-event-cause-deadlock-tp2485482p2485482.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/CEP-expires-an-event-cause-deadlock-tp2485482p2485482.html</a><br>
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>
</font></blockquote></div><br>