Are the 24 hour intervals fixed, i.e., from 0:00 to 24:00? In this
case simply counting them is sufficient. You need rules at all.
-W
On 01/11/2012, mohan <mohan.narangoda(a)gmail.com> wrote:
Let's assume we need to calculate number of Alarm facts/events
inserted into
WM over particular day. We will keep on adding facts throughout the day. If
this count greater than threshold let’s notify somebody. Also we will
retract facts/events which are older than 24 hours.
Can we handle this situation without single static StatefulKnowledgeSession?
Simply can we count number of facts/events in a WM in a particular time
using multiple session? So I can call session.dispose() after each
insertion.
--
View this message in context:
http://drools.46999.n3.nabble.com/Best-practice-to-use-heap-memory-effect...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users