Re: [rules-users] how to enable and disable a rule

2013-06-25 Thread ra...@thebuckland.com
Hi suntrian, What you are trying to do seems a little confusing. There are other ways to control which rules fire and which dont. Perhaps if you explain your problem in business/functional terms, we can help you write the rules the way drools would expect. Thanks Ramon suntrian wrote: >i ne

Re: [rules-users] how to enable and disable a rule

2013-06-25 Thread Wolfgang Laun
On 26/06/2013, suntrian wrote: > i need to disable a rule when it is triggered using the function below > drools.getRule().setEnabled(EnabledBoolean.ENABLED_FALSE); > while > *the rule need to be enabled in another rule.* This doesn't make sense. Perhaps you can explain what you mean by providi

Re: [rules-users] Convert GuidedDecisionTable to DRL

2013-06-25 Thread learnbrms
Use http://:/jboss-brms/rest/packages/{packageName}/source to get the DRL file source. I guess GDST is like an excel sheet on top of which rules are written. So if you are migrating it from one repo to another, you have to migrate this asset as gdst but if you just need DRL, get it from package sou

[rules-users] Download a POJO model from Guvnor using REST or WebDAV

2013-06-25 Thread learnbrms
Hi, We are in the process of building a deployment script where-in we have to migrate individual assets from drools guvnor to a centralized repository. Eventually we will be using the centralized repository to generate packages for runtime deployment. Is it possible to download a POJO model from

[rules-users] how to enable and disable a rule

2013-06-25 Thread suntrian
i need to disable a rule when it is triggered using the function below drools.getRule().setEnabled(EnabledBoolean.ENABLED_FALSE); while *the rule need to be enabled in another rule.* how can i make it? -- View this message in context: http://drools.46999.n3.nabble.com/how-to-enable-and-disa

[rules-users] What is ->?

2013-06-25 Thread Sonata
Hi, I may have missed it in the 5.5.0.Final Drools Expert User Guide, please point it out if its actually in the document. What is the use of "->" on the LHS? Thank you -- View this message in context: http://drools.46999.n3.nabble.com/What-is-tp4024549.html Sent from the Drools: User forum mai

Re: [rules-users] OptaPlanner Guvnor integration

2013-06-25 Thread Geoffrey De Smet
Thanks for the clear recipe! I've documented step 2 and 3 in the optaplanner manual (step 1 is already partially documented and the other part is documented in guvnor's docs). Step 4 sounds like a bug, so please raise an issue if uploading the optaplanner-co

Re: [rules-users] openLiveQuery not implemented

2013-06-25 Thread Mark Proctor
it's certainly easy for someone to attempt :) I'm not sure if the JPA persistence and transactions will be a problem here or not. If i'ts not, it's easy, if it is, it's hard. I have a lot of on my plate, answer user forums is something i do in-between tasks - so it's rushed,. Some patience woul

Re: [rules-users] openLiveQuery not implemented

2013-06-25 Thread Wolfgang Laun
"...it's probably hard to do..." vs. "Shouldn't be too hard ... to do" Make up your mind? -W On 25/06/2013, Mark Proctor wrote: > that has not changed, I think it's probably hard to do via the JPA command > approach. > > Shouldn't be too hard for someone to do. Send your pull requests in :) don

Re: [rules-users] openLiveQuery not implemented

2013-06-25 Thread Mark Proctor
that has not changed, I think it's probably hard to do via the JPA command approach. Shouldn't be too hard for someone to do. Send your pull requests in :) don't forget the unit tests, we won't accept a pull request that is without tests. Mark On 25 Jun 2013, at 15:23, Andynator wrote: > Hey,

[rules-users] openLiveQuery not implemented

2013-06-25 Thread Andynator
Hey, I am using Drools 5.5.0final and came acroos a problem when using Querries with JPA StatefulKnowledgeSession (persistent). I looked at the implementation and found following: Link

Re: [rules-users] Memory-Problemwith instance of "ReteooStatefulSession"

2013-06-25 Thread Wolfgang Laun
What is the type of Alert.informationId? What is the set of values you might expect over one month? -W On 25/06/2013, anniejoseph wrote: > Hi, > Thanks for your reply. > Sorry for my mistake. Actually I don't know the number of facts that I > have > in the session when memory consum

Re: [rules-users] Memory-Problemwith instance of "ReteooStatefulSession"

2013-06-25 Thread anniejoseph
Below given is the Leak Suspects image that I got from the Machine where I made the application up -- View this message in context: http://drools.46999.n3.nabble.com/Memory-Problemwith-instance-of-ReteooStatefulSession-tp4024509p40

Re: [rules-users] Memory-Problemwith instance of "ReteooStatefulSession"

2013-06-25 Thread anniejoseph
Hi, Thanks for your reply. Sorry for my mistake. Actually I don't know the number of facts that I have in the session when memory consumption was high. The rules are firing continuously (the application that use these rules were running continuusly for 1 month, this the rul

[rules-users] Create KieBase from Jar/Zip

2013-06-25 Thread Daniel Straub
If we create a KieBase from a Jar, all rules has to be placed in "src/main/resources" (why ?). That means, it is not possible to build a "jar" with maven, beacuse maven puts all resouces in the root folder of fhe jar. Ok, we build a "zip", using the maven assembly plugin. But there is an error

Re: [rules-users] Unable to initialize KieBase from Windows file system

2013-06-25 Thread Mario Fusco
Hi Daniel, thanks for having reported this ... as you can imagine we don't have many Windows machines here :) Anyway I just fixed this issue and the fix will be available starting from the 6.0-Beta4 version that will be released during this week. Thanks again and regards, Mario -- View this m

Re: [rules-users] Memory-Problemwith instance of "ReteooStatefulSession"

2013-06-25 Thread laune
You have (at least) two different fact classes: Alert and Information (not just one, as you write). The rule you have shown has only two patterns - I was asking for one with three patterns (as I was thinking they had all to be of the same class). If you retract an Alert as soon as it is processed

Re: [rules-users] OptaPlanner Guvnor integration

2013-06-25 Thread Bartek
I get it to work. Four steps where needed: 1. Adding private KnowledgeBase *kBase*;//injected with Spring // Build the Solver SolverFactory solverFactory = new XmlSolverFactory("/planner/solverConfig.xml"); RuleBase ruleBase = ((InternalKnowledgeBase) *kBase*).getR

Re: [rules-users] Memory-Problemwith instance of "ReteooStatefulSession"

2013-06-25 Thread anniejoseph
Hi, I have a requirement that needs to convert a level (eg. an Information) to a higher level (eg. an exception) The conversion happens on the basis of the number of times Information occurs ie based on a count. Process to identify Information,to track the occurrence i.e is count o

Re: [rules-users] Memory-Problemwith instance of "ReteooStatefulSession"

2013-06-25 Thread Wolfgang Laun
Then it is very likely that rules with 3 patterns referring to the same, single class cause the excessive memory consumption. You'll have to show us such a rule and explain why you think you need to write the patterns the way you did - then, we should be able to propose a solution. -W On 25/06/

Re: [rules-users] Memory-Problemwith instance of "ReteooStatefulSession"

2013-06-25 Thread anniejoseph
Hi, All of my facts are of the same class. One of these list contain only one object and in the other list contain sometimes 0 objects and sometimes it can be 5 or 6. -- View this message in context: http://drools.46999.n3.nabble.com/Memory-Problemwith-instance-of-ReteooStatefulSession-tp40

Re: [rules-users] NPE in org.drools.compiler.compiler.PackageBuilder

2013-06-25 Thread Davide Sottara
Could you please open a JIRA ticket, and/or submit the DRL fragment that causes the exception? Sometimes NPEs are symptoms of problems that happen elsewhere and do not manifest until much later. Thanks Davide -- View this message in context: http://drools.46999.n3.nabble.com/NPE-in-org-drools-

Re: [rules-users] Unable to initialize KieBase from Windows file system

2013-06-25 Thread Wolfgang Laun
It will have to be fixed in most places. And here is another one: KieBuilderImpl.generatePomProperties uses "\n" for line delimiters. That's not a problem with XML, where it only affects the readability. See generatePomXml. -W On 25/06/2013, Daniel Straub wrote: > The first attempt was to modi

Re: [rules-users] NPE in org.drools.compiler.compiler.PackageBuilder

2013-06-25 Thread Daniel Straub
Yeah, something like this ... Or an indication which rule / package fails to build. -- View this message in context: http://drools.46999.n3.nabble.com/NPE-in-org-drools-compiler-compiler-PackageBuilder-tp4024516p4024524.html Sent from the Drools: User forum mailing list archive at Nabble.com. _

Re: [rules-users] Unable to initialize KieBase from Windows file system

2013-06-25 Thread Daniel Straub
The first attempt was to modify the RESOURCES_ROOT ... but there are more places where '/' is used instead of the correct file.separator e.g. org.drools.compiler.kie.builder.impl.KieBuilderImpl : -- View this message in context: http://drools.46999.n3.nabble.com/Unable-to-initialize-KieBase-

Re: [rules-users] NPE in org.drools.compiler.compiler.PackageBuilder

2013-06-25 Thread laune
Probably something like the one below...? "A java.lang.NullPointerException was caused for unknown reason by undisclosed code, guess what." -- View this message in context: http://drools.46999.n3.nabble.com/NPE-in-org-drools-compiler-compiler-PackageBuilder-tp4024516p4024521.html Sent from

Re: [rules-users] Memory-Problemwith instance of "ReteooStatefulSession"

2013-06-25 Thread Wolfgang Laun
Are all of your facts of the same class? How many fact objects do you have? How many objects are in the two lists of these facts? Please be more precise. -W On 25/06/2013, anniejoseph wrote: > Hi, >I have two rule files(rule1.drl and rule2.drl) first file contains 5 > rules and the second one

Re: [rules-users] Unable to initialize KieBase from Windows file system

2013-06-25 Thread laune
"file.separator" Daniel Straub wrote > Spending some time for debugging, we realized that in KieBuilderImpl (and > other places) file names are compared with linux path delimiter > > We made the followin hack Hack, indeed. RESOURCES_ROOT should be set correctly, using System.getProperty( "fil

Re: [rules-users] Memory-Problemwith instance of "ReteooStatefulSession"

2013-06-25 Thread anniejoseph
Hi, I have two rule files(rule1.drl and rule2.drl) first file contains 5 rules and the second one contains 9 rules. Each rule contain 2 or 3 patterns .Also objects used by every rules are same. Objects contain two lists and size of these list can vary according to the situation. -- Vie

[rules-users] NPE in org.drools.compiler.compiler.PackageBuilder

2013-06-25 Thread Daniel Straub
Instead of a NPE we would expect a error message in the KieBuilder results: -- View this message in context: http://drools.46999.n3.nabble.com/NPE-in-org-drools-compiler-compiler-PackageBuilder-tp4024516.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

[rules-users] Unable to initialize KieBase from Windows file system

2013-06-25 Thread Daniel Straub
We try try to initialize a KieBase like this: but no rule files where found. Spending some time for debugging, we realized that in KieBuilderImpl (and other places) file names are compared with linux path delimiter but - as usally known - Windows file system uses '\' . We made the followin

Re: [rules-users] Memory-Problemwith instance of "ReteooStatefulSession"

2013-06-25 Thread Wolfgang Laun
Please provide detailed information about - the number of your rules - a statistic of the complexity of your rules (r rules with p patterns, p = 1,...) - a statistic of the facts (f facts of class C, with one C object's size being s) -W On 25/06/2013, anniejoseph wrote: > Hi, > I'

Re: [rules-users] External storage and timers

2013-06-25 Thread didierC
Thanks for your response Marc. I've also test this functionnality with the 5.5 version and I've got the same error. Do you know if this will be resolved in the next release ? Thanks, Didier -- View this message in context: http://drools.46999.n3.nabble.com/External-storage-and-timers-tp4024

[rules-users] Memory-Problemwith instance of "ReteooStatefulSession"

2013-06-25 Thread anniejoseph
Hi, I'm using jBoss Rules.But I run in to memory issues after using JBoss rules. Using a profiling tool I collected heap dump and I got the result as : /One instance of "org.drools.reteoo.ReteooStatefulSession" loaded by "sun.misc.Launcher$AppClassLoader @

[rules-users] Memory-Problemwith instance of "ReteooStatefulSession"

2013-06-25 Thread anniejoseph
Hi, I'm using jBoss Rules.But I run in to memory issues after using JBoss rules. Using a profiling tool I collected heap dump and I got the result as : /One instance of "org.drools.reteoo.ReteooStatefulSession" loaded by "sun.misc.Launcher$AppClassLoader @