Conditions are evaluated when facts are inserted, modified and deleted.
-W
2011/8/25 Matthew Erler
> In Drools 5 I'm passing in two global Date objects and need to find the
> difference in days between them. I've discovered that the function
> parameters (fromDate and toDate in my case) are nu
Best place for bugs is the Guvnor Jira. I opened a ticket for you and I'm
working on this https://issues.jboss.org/browse/GUVNOR-1609
Toni
On Aug 22, 2011, at 10:54 PM, pamerida wrote:
> This version: guvnor-5.2.0.Final-tomcat-6.0.war
>
> --
> View this message in context:
> http://drools.46
I forgot to answer your other question: I'm on Drools 5.2. I had tried the
Drools 5.3 Beta 1 distribution but there was no improvement- it seems
something was fixed specifically in MVEL 2.1 Beta6.
Also, to Thomas: I have to specify -Xmx512m in order to run a pretty bare
minimum unit test (this doe
I got it directly from the MVEL Web site:
http://mvel.codehaus.org/Downloading+MVEL
http://mvel.codehaus.org/Downloading+MVEL
Good luck! Hopefully this version, or an even better one, will be included
with Drools 5.3 final.
--
View this message in context:
http://drools.46999.n3.nabble.com/Dro
In Drools 5 I'm passing in two global Date objects and need to find the
difference in days between them. I've discovered that the function parameters
(fromDate and toDate in my case) are null in the condition when the function is
called, but when the function is called in the consequence they h
Hi Rob,
Just for you to know in the back a stateless session contains a Stateful
session. The stateless session reduce the number of things that you can do
against it. Allowing you to call just the execute method and automatically
disposing the session.
In the end you will not get any performance i
Hi Rob,
another approach we're considering to version rulesets used to perform
mortgage risk assessment looks roughly as follows:
- each of the rulesets is versioned as a whole (i. e. compile all *.drl
pertaining to a ruleset into a *.pkg file and give this *.pkg a version
number).
- the scoring
Looking for best practice recommendations around the versioning of a rule. Our
application will have 50-60 rule sets comprised of up to 70 rules each. The
activation of many of the rules will be based on a processing date (inserted
fact attribute). The application processing date can be prior
We have a batch application that will have 50 - 60 rule sets, comprised of 5 -
75 rules each. We'll run a group of individuals through the rules and
potentially qualify them for various awards. We'll insert 10 facts, each
containing a unique set of attributes which will be used in the rule se
Reposting since I didn't get any takers. I'm hoping it might have been because
I sent it to the list on a Friday afternoon (2 weeks ago).
Hey,
I'm trying to utilize a "load method" for Guvnor, but I can't seem to get it
working. His is my DataHelper class (modeling it off the documentation):
I don't see a Beta6 jar. The one in Drools 5.3 is mvel2-2.1.Beta5.jar -- is
that the one you mean? Are you at drools 5.3 beta1 code level?
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-5-2-performance-building-KnowledgeBase-tp3239746p3281751.html
Sent from the Drools
For the conditions where a field is tested for equality with some value, the
field name alone is sufficient. So, use [age] rather than [age==]. For other
comparison operators, add the operator, and each value is appended, as
written in a cell below. For more complicated expressions, use an expressi
Hi,
Maybe you can put something like the following in the code:
SpreadsheetCompiler xlsCompiler = new SpreadsheetCompiler();
String drl =
xlsCompiler.compile(ResourceFactory.newClassPathResource("Sample.xls").getInputStream(),InputType.XLS);
System.out.println(drl);
This should enable you to see
Hi,I put $param in the blank places, but still i am getting same error:Error is java.lang.RuntimeException: [10,23]: [ERR 101] Line 10:23 no viable alternative at input ''[10,25]: [ERR 101] Line 10:25 no viable alternative at input ''[10,38]: [ERR 101] Line 10:38 no viable alternative at input ''[
Did you tried Drools 5.1.1? or 5.2? Lots of bugs were fixed since
5.1.0...
Edson
2011/8/24 dcrissman
>
> Esteban wrote:
> >
> > What are the steps you are following? Something like this?:
> >
> > The agent creates the kbase
> > Get kbase from kagent
> > Create a stateless kses
Thanks for the explanation Edson!
That's fine. In the meantime we will do our best to pre-compute the most
we can in accumulate() ;-).
Best regards,
Bruno.
Le 24/08/2011 16:21, Edson Tirelli a écrit :
Yes, evaluation is incremental, so for every new fact, it will call
accumulate() and g
Yes, evaluation is incremental, so for every new fact, it will call
accumulate() and getResult().
We do want to reduce the calls to getResult(), improving performance, but
it is not easy to figure out a way, as from an engine perspective, it never
knows when the application is done inserting
Hi,
It was something that I did not spot immediately, but you also forgot to put
$param in the cells where you evaluate an integer value
marks == $param in stead of marks == blank
But maybe that was something that you already corrected.
I also noticed that Esteban explained the cell merging muc
Esteban wrote:
>
> What are the steps you are following? Something like this?:
>
> The agent creates the kbase
> Get kbase from kagent
> Create a stateless ksession
> insert some facts
> fire all rules
> check result
> modify drl
> wait until kagent rebuilds the k
> Swindells, Thomas píše v St 24. 08. 2011 v 09:14 +0100:
> > I’ve simplified my code into the following test case which on my
> > machine after about 600 or so iterations gives an Out of memory
> > exception:
>
> Have you tried removing jBPM jar files? If it fixes the issue, then it's a
> known
>
I will put my hands on that game, as soon as Sotty give me some free time to
play with it!
On Wed, Aug 24, 2011 at 7:56 AM, Mark Proctor wrote:
> Still got some tidying up to do, but it's at a stage where peopel can
> start playing with it:
> http://blog.athico.com/2011/08/text-adventures-with-d
About the duplicated $s varaible, is because you have 2 DIFFERENT conditions
saying $s:Student (same thing for $c)
The rules you have there are translated to (when age field has a value):
when
$s:Student (age == 18) //if age value was 18
$s:Student (mark == 20")
$c:College (ranking
Swindells, Thomas píše v St 24. 08. 2011 v 09:14 +0100:
> I’ve simplified my code into the following test case which on my
> machine after about 600 or so iterations gives an Out of memory
> exception:
Have you tried removing jBPM jar files? If it fixes the issue, then it's
a known bug that should
Hi,
While testing my custom accumulation function I noticed an unexpected
behavior (th'ats of course a personal point of view).
It seems that Drools 5.1 calls accumulate(...) and getResult(...) as
many times as the number of accumulated facts (accumulate, getResult,
accumulate, getResult, etc..
Hi Frank,
I already did as you said, but still i am getting the following error:
Error is java.lang.RuntimeException: [12,19]: [ERR 101] Line 12:19 no
viable alternative at input ''[12,27]: [ERR 101] Line 12:27 no viable
alternative at input ''[13,15]: [ERR 101] Line 13:15 no viable alternati
Hi all,
I am experiencing the problem that is described here:
http://efreedom.com/Question/1-4874717/Drools-Rules-Quotes-Auto-Escape-Compile-Time
>From what I can see, this has nothing to do with guvnor, since I am using XL
decision tables without Guvnor. I have an XL where I have an action colum
Hi to you,
The error message seems to indicate that you are having 2 (types of) errors
in your decision table.
Error type 1: You have duplicate names.
As I am assuming that you are comparing 1 student with 1 college, you can
delete one $s: Student() and one $c: College() cell. Then, you merge the
Hi to All,
I am new to Drools 5.0...
I created three classes(Student, College and StudentCollege) and Decistion
table(manohar.xls) like this:-
Student.java:
package com.model;
public class Student {
private int age;
private int marks;
public String department;
Continuing trying to upgrade from drools 5.1 I've been finding some strange
funnies in rules behavior. Currently I'm using
5.3.0.Beta1
5.1.0.Final
2.1.Beta6
In our model we've got some lists (Yuck I know) and we want to test whether
they are not empty, there are thre
Still got some tidying up to do, but it's at a stage where peopel can
start playing with it:
http://blog.athico.com/2011/08/text-adventures-with-drools.html
Mark
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/li
Cheers, thanks for the info, that does greatly improve compilation time - I
take it it is your maxpermsize that you had to increase in jboss?
Thomas
> -Original Message-
> From: rules-users-boun...@lists.jboss.org [mailto:rules-users-
> boun...@lists.jboss.org] On Behalf Of darktyco
> Se
I'm in the middle of trying to upgrade our application to Drools 5.2 from 5.1
however I keep facing out of memory issues (I've also tried on the current 5.3
beta).
I've simplified my code into the following test case which on my machine after
about 600 or so iterations gives an Out of memory exc
@Wolfgang: I have that in my TODO list for a long time. Right now it is
possible to create that mechanism using Agent listener and manipulating
ResourceScanner manually. Something similar to what KAgent tests are doing.
But the problem here seems to be different because of 2 reasons:
1. He doe
Incremental change set processing might create the effect you describe.
Declared types are always replaced; rules only if they differ.
It sure would be nice if the effects of knowledge base updates were
described in a way that leaves no room for guesswork. "Gimme hope,
Jo'anna..."
-W
On 23 Aug
34 matches
Mail list logo