Re: [rules-users] Using global variable in DRL file

2012-07-27 Thread Wolfgang Laun
How do the record counts relate to files? 1800,12k and 9.5k =:= ABPolicyTransactions, ABPolicy, ABAgent? Are these two rules all there is? The second one has $csvPolicy : CSVBeanPolicy() //$csvAgent : CSVBeanAgent() --- assume this is not commented out Now if you do insert

Re: [rules-users] Apply role to whole class hierarchy

2012-07-27 Thread Joerg Henne
Thanks for your help, Edson! We are using drools 5.4.0.Final via maven. Maybe I am missing something, so here's a quick overview of what we do. We have a model class ButtonEvent which is derived like this: ButtonEvent - ZonedEvent - VSCPEvent Then there's a rulebase with something like this:

Re: [rules-users] Guvnor: Accessing Bound Variable in Then Statement

2012-07-27 Thread Michael Anstis
Hello, Please advise which version of Guvnor you are using. Please also provide a few explicit examples where behavior is not as you'd expect (screen shots of the rule and a few words would be cool). Thanks, Mike On 26 July 2012 20:42, Vann_the_Red aba...@ntelx.com wrote: Hello. I started

[rules-users] [Planner][DRL] Changable problem facts?

2012-07-27 Thread mSkiba
Hello! I am working on task scheduling system. My system works fine, but I want to make it faster. For my current problem we can assume that my domain consists of: * Worker (int id, ListTimePeriod workingHours) * TaskAssignment (int id, ListTimePeriod possibleExecutionTime, Duration leadTime,

Re: [rules-users] Drools Planner JIT selectors: release date

2012-07-27 Thread Geoffrey De Smet
No exact date for 5.5.0.Beta1 has been set yet: Planner follows Drools's release lifecycle. That selector functionality is ready to be released though, so it will be part of the next release. Op 25-07-12 22:41, Ricardo schreef: I learned from the following link, this sounds very good for

Re: [rules-users] Using global variable in DRL file

2012-07-27 Thread zeeshan
Hi Laune ! I applied your suggested changes but the loop is running infinitely and same policyAPE is used to generated cumulated value I mean for 1 agent it is expected that all the policy APEs should sum up to generate Agent APE but same policy APE getting summed up infinitely.plz find

Re: [rules-users] Using global variable in DRL file

2012-07-27 Thread Wolfgang Laun
Sorry, I think I missed this, all you need is a no-loop in the rule :) -W On 27/07/2012, zeeshan zeeshan.spr...@gmail.com wrote: Hi Laune ! I applied your suggested changes but the loop is running infinitely and same policyAPE is used to generated cumulated value I mean for 1 agent it is

Re: [rules-users] Apply role to whole class hierarchy

2012-07-27 Thread Edson Tirelli
Looks like a bug. :( The code to inherit @role event is there, but apparently there is something else going on: https://github.com/droolsjbpm/drools/blob/master/drools-core/src/main/java/org/drools/rule/Package.java#L485 Please open a JIRA with the information bellow. Edson On Fri,

Re: [rules-users] Using global variable in DRL file

2012-07-27 Thread zeeshan
Hi Laune ! Thanks for ur solution , I resolved the heap Size problem with your solution but even using *no-loop* is not helping in solving infinite loop issue . Can u suggest why it is not accessing other agent objects and simply updating same agent object infinite times..After

Re: [rules-users] Rule Templates

2012-07-27 Thread FrankVhh
Hi, It is not quite clear to me what you are actually having problems with. I think the documentation explains it quite nicely. See section 6.2 Templates http://docs.jboss.org/drools/release/5.4.0.CR1/drools-expert-docs/html_single/index.html#d0e7468 If you have a more specific question. Feel

Re: [rules-users] Using global variable in DRL file

2012-07-27 Thread Wolfgang Laun
Ah, yes - there are multiple updates of an Agent from several different policies. Now, it depend: Is the computed sum of the APEs in the Agent used in any other rule? If not, the solution is simple. Do not use modify/update; simply accumulate the values, using the setter, and in this case you can

Re: [rules-users] Rule Templates

2012-07-27 Thread FrankVhh
The information that would help me is (using Eclipse or JBDS) can one edit, It depends if you mean edit the templates or edit the data that you use to populate it. You can create a rule template in any text editor you like and, AFAIK, it can have any extension you prefer. Convert it to an