[rules-users] Guvnor web-based decision table not firing
Hello, When I set up a test scenario for my Guvnor-designed decision table, I see that the decision table isn't fired. Can anyone tell me what is possibly missing? Ie. 1. Design a medium complexity level decision table with the Guvnor interface. 2. Design a test scenario to fire and test the newly created decision table. 3. The Audit Log shows that decision table rules are not fired. Ken -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-web-based-decision-table-not-firing-tp4020644.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Guvnor web-based decision table not firing
Never mind. I was looking for a problem with Guvnor, but the problem was in one of the Conditions. The table rules fire. -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-web-based-decision-table-not-firing-tp4020644p4020645.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Best practice to use heap memory effectively
Hi folks, Still i'm struggling to solve memory issue. My application will hang up after one day due to memory leak. I’m not calling session.dispose() and think it was the main reason behind this. How can I keep events accumulate number of events inside WM in a particular day without a single static StatefulKnowledgeSession? With kind regards, Mohan -- View this message in context: http://drools.46999.n3.nabble.com/Best-practice-to-use-heap-memory-effectively-tp4020194p4020646.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Adding custom metadata fields in guvnor
Thank you Jervis.. I see there is a already a feature request out there for metadata management: https://issues.jboss.org/browse/GUVNOR-1170 Do you think this feature will be available any time soon? -- View this message in context: http://drools.46999.n3.nabble.com/Adding-custom-metadata-fields-in-guvnor-tp4020546p4020653.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Best practice to use heap memory effectively
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-effectively-tp4020194p4020656.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Best practice to use heap memory effectively
Why not just maintain a counter object in working memory? Just increment it whenever an alarm fact is inserted. Reset or retract it at the end of the day. From: mohan mohan.narang...@gmail.com To: rules-users@lists.jboss.org Sent: Thursday, November 1, 2012 3:15 PM Subject: Re: [rules-users] Best practice to use heap memory effectively 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-effectively-tp4020194p4020656.html Sent from the Drools: User forum 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
Re: [rules-users] Best practice to use heap memory effectively
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.narang...@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-effectively-tp4020194p4020656.html Sent from the Drools: User forum 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
Re: [rules-users] Best practice to use heap memory effectively
Hi Greg, yes that's the way i'm doing right now. To keep this count hope we need to maintain single session. So we can’t dispose session and by the time will we end up with memory exhaust? Thanks a lot. -- View this message in context: http://drools.46999.n3.nabble.com/Best-practice-to-use-heap-memory-effectively-tp4020194p4020659.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Best practice to use heap memory effectively
Correction: You don't need rules at all. On 01/11/2012, Wolfgang Laun wolfgang.l...@gmail.com wrote: 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.narang...@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-effectively-tp4020194p4020656.html Sent from the Drools: User forum 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
Re: [rules-users] Best practice to use heap memory effectively
Can't you sum up counts from multiple sessions? Remove the count from the session before you dispose and keep that total count around until the end of the day. Unless there's something complex you need to do with all of the Alarm facts at the end of the 24 hour period there's no need to keep them around. From: mohan mohan.narang...@gmail.com To: rules-users@lists.jboss.org Sent: Thursday, November 1, 2012 3:42 PM Subject: Re: [rules-users] Best practice to use heap memory effectively Hi Greg, yes that's the way i'm doing right now. To keep this count hope we need to maintain single session. So we can’t dispose session and by the time will we end up with memory exhaust? Thanks a lot. -- View this message in context: http://drools.46999.n3.nabble.com/Best-practice-to-use-heap-memory-effectively-tp4020194p4020659.html Sent from the Drools: User forum 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
Re: [rules-users] Best practice to use heap memory effectively
interval are not fixed. it should be sysdate+24 hours. (2 AM to next day 2 AM) -- View this message in context: http://drools.46999.n3.nabble.com/Best-practice-to-use-heap-memory-effectively-tp4020194p4020663.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Best practice to use heap memory effectively
On 01/11/2012, mohan mohan.narang...@gmail.com wrote: interval are not fixed. it should be sysdate+24 hours. (2 AM to next day 2 AM) You contradict yourself. 2am to 2am *is* fixed. Just counting does not require a rule based system anyway. -W -- View this message in context: http://drools.46999.n3.nabble.com/Best-practice-to-use-heap-memory-effectively-tp4020194p4020663.html Sent from the Drools: User forum 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
Re: [rules-users] Best practice to use heap memory effectively
What I meant is 24 hour period start from when event insert into memory. So each event/fact has different 24 hour period. If you take whole picture it is not fixed. 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. thanks. -- View this message in context: http://drools.46999.n3.nabble.com/Best-practice-to-use-heap-memory-effectively-tp4020194p4020666.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Best practice to use heap memory effectively
Is this not a use case for CEP with the session in stream mode and Drools Fusion clearing up the obsolete Alarm events? sent on the move On 1 Nov 2012 21:13, mohan mohan.narang...@gmail.com wrote: What I meant is 24 hour period start from when event insert into memory. So each event/fact has different 24 hour period. If you take whole picture it is not fixed. 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. thanks. -- View this message in context: http://drools.46999.n3.nabble.com/Best-practice-to-use-heap-memory-effectively-tp4020194p4020666.html Sent from the Drools: User forum 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
Re: [rules-users] Best practice to use heap memory effectively
Using multiple sessions is not applicable, it will just (heavily) increase memory requirements. How precise does this have to be? For instance, counting all events arriving in the interval -mm-dd hh:mm requires 24*60 objects EventsPerMinute per 24 hours. You can keep track on the running total in one single fact. As soon as the oldest EventsPerMinute becomes older that 24hrs, you retract it and reduce the running total. You can reduce the granularity to seconds, if necessary. -W On 01/11/2012, mohan mohan.narang...@gmail.com wrote: What I meant is 24 hour period start from when event insert into memory. So each event/fact has different 24 hour period. If you take whole picture it is not fixed. 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. thanks. -- View this message in context: http://drools.46999.n3.nabble.com/Best-practice-to-use-heap-memory-effectively-tp4020194p4020666.html Sent from the Drools: User forum 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
Re: [rules-users] Best practice to use heap memory effectively
Ok. What I have realized is that I can maintain single StatefulKnowledgeSession (without dispose) through the application and retract facts once in a while. So ideally I should not face any memory issue. Anyway I’ll try to upgrade drool version(5.1.1 5.4.0.Final) and see whether there are any improvement in overall memory consumption. Tks Mohan -- View this message in context: http://drools.46999.n3.nabble.com/Best-practice-to-use-heap-memory-effectively-tp4020194p4020669.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Adding custom metadata fields in guvnor
On 2012/11/2 2:05, sguruprasanna wrote: Thank you Jervis.. I see there is a already a feature request out there for metadata management: https://issues.jboss.org/browse/GUVNOR-1170 Do you think this feature will be available any time soon? Nothing concrete we can say at the moment. But you can vote this jira, we can certainly put it in a higher priority if we see more people are demanding this feature. Thanks, Jervis -- View this message in context: http://drools.46999.n3.nabble.com/Adding-custom-metadata-fields-in-guvnor-tp4020546p4020653.html Sent from the Drools: User forum 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