[rules-users] CEP - @expires an event cause deadlock?

Wolfgang Laun wolfgang.laun at gmail.com
Sun Feb 13 09:28:03 EST 2011


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".

-W


On 13 February 2011 14:13, rodih <roded.hess at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110213/ea7e6efb/attachment.html 


More information about the rules-users mailing list