Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-10 Thread Wolfgang Laun
Just repeat this, as often as required, with as many facts in facts as you want: // copy-pasted from the API documentation ;-) StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession(); for( Object fact : facts ) { ksession.insert( fact ); } ksession.fireAllRules();

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-10 Thread Mahadevappa, Shobha
Is there anything that has to be taken care in case of a stateless session. I have a huge collection of facts that needs to get into the working memory and I fire ksession.execute(Collecton object); Regards, Shobha M | Senior Program Manager, AAD | NTT DATA Global Delivery Services Limited|

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-10 Thread Wolfgang Laun
On 10/10/2012, Mahadevappa, Shobha shobha.mahadeva...@nttdata.com wrote: Is there anything that has to be taken care in case of a stateless session. I have a huge collection of facts that needs to get into the working memory and I fire ksession.execute(Collecton object); That'll do - it calls

[rules-users] Evaluating decision tables from DRL

2012-10-10 Thread Manasi
Hi, With Drools I need to execute a DRL first and based on its output value I need to evaluate a decision table in guvnor and get the output values. Please let me know how this can be done. Thanks, Manasi -- View this message in context:

Re: [rules-users] Evaluating decision tables from DRL

2012-10-10 Thread Michael Anstis
Chaining rules, including those in decision tables, can be achieved by using a transient control fact. rule your DRL rule 1 when YourObject( field == 1 ) then insertLogical( new TransientControlFact( dtable1 ); end rule your DRL rule 2 when YourObject( field

[rules-users] Best practice to use heap memory effectively

2012-10-10 Thread mohan
Hi , I want to keep events valid for 24 hour period. Per day I’m getting over 1000K events insert into session. I saw that heap usage increase drastically because of this. What is the best practice to handle such a situation? Do I need to choose some caching mechanism? Meantime I’m using

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-10 Thread Brenda1636
Thank you! I did write code for this last night and ran it, but didn't get the results I wanted so I was thinking the session was disposed before it had a chance to run the rules. But the real issue was that I did not write my rule correctly. Thanks again! -- View this message in context:

Re: [rules-users] Finding the definition of a rule

2012-10-10 Thread LStampf
Thank you very much, it worked. kind regards Lukas -- View this message in context: http://drools.46999.n3.nabble.com/Finding-the-definition-of-a-rule-tp4020183p4020196.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

[rules-users] Drools 5.5 - Runtime files

2012-10-10 Thread dxande6
Does anyone know where I can find documentation on the Drools 5.5 runtime files necessary to deploy with the application? Thank you for your assistance. -Dean -- View this message in context: http://drools.46999.n3.nabble.com/Drools-5-5-Runtime-files-tp4020199.html Sent from the Drools: User

Re: [rules-users] Get List of FactTypes in a KnowledgeBase

2012-10-10 Thread lhorton
Look at the Expert docs, for drools.getWorkingMemory(). This might be what you need. the iterateObjects() method on WorkingMemory lets you see all facts in working memory at runtime. -- View this message in context:

Re: [rules-users] Drools 5.5 - Runtime files

2012-10-10 Thread Michael Anstis
http://www.jboss.org/drools/downloads About half way down. When we get to 5.5.0.Final it'll move to the top of the page. The User Guide talks about dependencies: http://docs.jboss.org/drools/release/5.5.0.Beta1/droolsjbpm-introduction-docs/html/installationAndSetup.html On 10 October 2012

Re: [rules-users] Get List of FactTypes in a KnowledgeBase

2012-10-10 Thread Davide Sottara
kBase -- getKnowledgePackages() -- getFactTypes() returns the definitions for a given package kSession -- getObjects( new ClassObjectFilter( factyype.getFactClass() ) ) returns the actual instances of a given fact type Davide -- View this message in context:

Re: [rules-users] Drools 5.4 Jitting Error

2012-10-10 Thread jgeuns
FYI, I came across a similar problem calling a method declared on a Java helper class, when the method takes a Number and the value passed in is declared as long or int. Problem does not occur when value is declared as double. Simplified version of my example: class JavaHelper { public

[rules-users] Query regarding guvnor and drools remote execution using categories of guvnor

2012-10-10 Thread Krishnendra Nandi
Hi All I am a newbie I have a question In guvnor we have categories Using REST API we can access assets through categories like /rest/categories/{}/assets ...something like this I have a JSON object which gets populated which has references to binary for all the assets 1) How do we construct

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-10 Thread mohan
Hi laune, Assume we continuously getting vast number of facts or events from a stream and we want to reasoning over particular time window (accumulate number of events on this window) how we could achieve the same? Guess we cannot call dispose() after fireAllRules(). -- View this message in

[rules-users] Custom Form with DSL

2012-10-10 Thread bhochhi
I were able to launch the custom form in DSL, however the rule condition is not mapped to corresponding DRL. I don't know if this is a bug or just something is missing. my DSL mapping looks like this: [when] my dsl is {varName:CF:MyFactType.fieldName} = System.out.println({varName}) I have