Hi,
From documentation of 5.3.0:
2.1.1.4. Faster compilation
Thanks to many improvements and optimizations made on both MVEL library
and Drools internals, the DRL compilation is now at least 3 times faster
for both MVEL and Java dialects.
Does it really affect the runtime execution of already
Hi,
Previous Code from drools 3.x:
Below is an example of overridden method in a class that implemented
org.drools.spi.AgendaFilter
public boolean accept(Activation activation) {
boolean evaluateRule = false;
String agendaGroup = activation.getRule().getAgendaGroup();
Hi there,
I had something like this in drools 3.0 and it used to work but after I
upgraded to drools 5.0 it doesn't work.
[when]The Roof is not Type A , Type B , Type C , or RC=LM(rda != null,
rda != A, rda != B, rda != C, rda != R)
But to compile it now I had to make the following
Hi guys,
Just wanted to know what is the difference b/w Drools 5.2 M1 and Drools
5.2 CR1?
Thanks,
saleem
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Can we combine to different DSL rules in DSLR with a Boolean operator?
Can we combine them with an OR or AND?
e.g; in DSL I have:
a or b = Person(name ==a || name ==b)
c or d= Person(name==c || name ==d)
Can I write in DRL as:
a or b or c or d?
I know combining them as one
Hi,
How do I combine 2 different dsl statements in dslr.
Example in dsl I have;
1. Kid=Parson(age 15)
2. Adult=Person(age 21)
Can I write like this in dslr:
Kid or Adult
saleem
___
rules-users mailing list
How do we get this done in Drools 5.2.1:
[when]Cov is not equal to {value} percent of Coverage A =
eval(math.calculatePercentages(covTO.getCoverage(), covTO.getD()) !=
{value})
This used to compile in Drools 3.
Thanks
saleem
___
, especially preceding [when] clauses, where covTO ought
to get defined
-W
2011/3/10 Saleem Lakhani saleem.lakh...@citizensfla.com
How do we get this done in Drools 5.2.1:
[when]Cov is not equal to {value} percent of Coverage A =
eval(math.calculatePercentages(covTO.getCoverage(), covTO.getD
ends with ... Coverage C but the DSL definition ends
with ...Coverage A
-W
2011/3/10 Saleem Lakhani saleem.lakh...@citizensfla.com
Here are the details:
This is how my rule looks like:
//Imports for TO and MathHelper
global com.h.MathHelper math;
rule Coverage must equal 20
Hi,
This is what used to work in Drools 3: Sample from DSL:
[then]A validation error has occurred=ValErrTO valErrTO = new
ValErrTO(); java.util.HashMap variableMap = new java.util.HashMap();
[then]- The standard error level is {standard_error_level}=int
stdErrLevel={standard_error_level};
the DSL and the DSLR:
[then]The standard error level is ...
-W
2011/3/9 Saleem Lakhani saleem.lakh...@citizensfla.com
Hi,
This is what used to work in Drools 3: Sample from DSL:
[then]A validation error has occurred=ValErrTO valErrTO = new
ValErrTO(); java.util.HashMap variableMap
*
builder.add(...).
-W
2011/3/4 Saleem Lakhani saleem.lakh...@citizensfla.com:
Following is my code:
KnowledgeBuilderConfiguration kbc =
KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration();
kbc.setProperty(drools.dialect.java.compiler, JANINO);
KnowledgeBuilder builder = null;
builder
Sorry .. no use. I made those changes but nothing different. I'll try
5.2.
saleem
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun
Sent: Friday, March 04, 2011 11:28 AM
To: Rules Users List
Subject: Re: [rules-users] HELP -
Following is my code:
KnowledgeBuilderConfiguration kbc =
KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration();
kbc.setProperty(drools.dialect.java.compiler, JANINO);
KnowledgeBuilder builder = null;
builder = KnowledgeBuilderFactory.newKnowledgeBuilder(kbc);
Reader drlSource =
HI,
Has anyone seen this before on Drools 5:
java.lang.NoSuchMethodError:
org/drools/compiler/PackageBuilderConfiguration.init(Ljava/util/Properties;)V
any insight?
saleem
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of
Got it fixed. Thanks for looking.
saleem
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Saleem Lakhani
Sent: Wednesday, March 02, 2011 9:53 AM
To: Rules Users List
Subject: [rules-users] PackageBuilderConfiguration
HI,
Has
Are you including drools-compiler in your application?
Best,
El mar 2, 2011 12:54 p.m., Saleem Lakhani
saleem.lakh...@citizensfla.com escribió:
Got it fixed. Thanks for looking.
saleem
From: rules-users-boun...@lists.jboss.org
Hi,
What is the actual reason for this error? Why cant drools give some
better explaination of this problem when the exception is thrown.
Here is the snippet of my code:
workingMemory.setGlobal(validationErrorHierarchy,
validationErrorHierarchy); //workingMemory is
I am switching from Drools 2 to 5.
Do we still do the following in Drools 5:
Properties properties = new Properties();
properties.setProperty( drools.dialect.java.compiler, RULE_COMPILER);
PackageBuilderConfiguration conf = new
PackageBuilderConfiguration(properties);
saleem
From:
Hi there,
If you are using drools 5, just change your drl file extensions to .dslr
and make any change in a file and recompile.
Hopefully it will help.
saleem
-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of
How can I access dsl file which is not in the same folder as the dslr;
expander application.dsl {application.dsl is not in the same folder as
dslr}
thanks,
saleem
___
rules-users mailing list
rules-users@lists.jboss.org
Subject: Re: [rules-users] dsl file in other folder
Which version of drools are you using? expander keyword is deprecated. There
is no longer need to use it. Kbuilder will try to expand a dslr file with all
the dsl definitions it has.
Best regards,
El feb 17, 2011 1:45 p.m., Saleem Lakhani
.
Pass all your DSL files to the KnowledgeBuilder, and then all your DSLR files.
-W
2011/2/17 Saleem Lakhani saleem.lakh...@citizensfla.com
I m using Drools 5 and I can see in an online book for Drools 5 that's using
expander ...
saleem
From: rules-users-boun...@lists.jboss.org
of the DSL/DSLR
parser, and the statement expander path just isn't used any more.
Pass all your DSL files to the KnowledgeBuilder, and then all your DSLR files.
-W
2011/2/17 Saleem Lakhani saleem.lakh...@citizensfla.com
I m using Drools 5 and I can see in an online book for Drools 5 that's
Hi,
I need some help regarding upgrading our validation engine from 2.0 to
5.0, I have added the required jars and my java code is compiling but
the DRL and DSL are not. Any suggestions?
Thanks,
saleem
___
rules-users mailing list
?
Can you share with us that information?
2011/2/11 Saleem Lakhani saleem.lakh...@citizensfla.com
Hi,
I need some help regarding upgrading our validation engine from 2.0 to 5.0, I
have added the required jars and my java code is compiling but the DRL and DSL
are not. Any suggestions?
Thanks
: PersonTO()
Please help.
Saleem Lakhani
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
possible in drools 3.0?
Thanks
Saleem Lakhani
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Hi,
How do I compare attributes of two different objects. E.g;
Object1.getEffectiveDate() Object2.getCompletionDate()
In drools 3.0. I am using DSL.
Thanks,
Saleem
___
rules-users mailing list
rules-users@lists.jboss.org
Hi,
Can we write something like this in Drools 3.0 ?
[when]The Roof is not NA=Object(roof != )
where roof is some String object.
Saleem Lakhani
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org
Hi,
If I had a rule written in DSL using Drools 3.0 like;
1. [when] when1=r : ObjectA( )
2. [when] when2=eval(r.isApplication() || r.isBanker())
There are no attributes in class Object with name application and banker
but there are methods in ObjectA with names
. In 4.0, you can write:
ObjectA( application == true || banker == true )
To map that as a DSL, just follow your usual procedure and syntax.
[]s
Edson
2007/8/21, Saleem Lakhani [EMAIL PROTECTED]:
Hi,
If I had a rule written in DSL using Drools 3.0 like;
1. [when] when1=r
Thanks Edson. That helped alot.
Can't we execute something simple like: ObjectA(units != families)
When both units families are defined as int in ObjectA with their
public get and set methods. This is the exception I am receiving.
org.drools.rule.InvalidRulePackage: Unable to return
Hi,
I am wondering how someone gets start with writing DRLs DSLs without
any tutorials or guidelines. If there is one then please share it with
me.
It is urgent. I am using Drools 4.0.
Saleem Lakhani
___
rules-users mailing list
rules
34 matches
Mail list logo