). What version of Drools are
you using?
2011/2/13 Wolfgang Laun <wolfgang.laun(a)gmail.com>
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(a)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-...
> Sent from the Drools - User mailing list archive at
Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users