[rules-users] 5.3.0 Faster Complation?

2011-10-28 Thread Saleem Lakhani
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

[rules-users] AgendaGroup and AgendaFilter

2011-07-11 Thread Saleem Lakhani
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();

[rules-users] comma on LHS in dsl

2011-06-21 Thread Saleem Lakhani
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

[rules-users] M1 Vs CR1

2011-06-15 Thread Saleem Lakhani
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

[rules-users] DSL in Drools 5.2

2011-05-12 Thread Saleem Lakhani
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

[rules-users] concatenate 2 dsl rules in dslr

2011-05-11 Thread Saleem Lakhani
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

[rules-users] eval in DSL

2011-03-10 Thread Saleem Lakhani
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 ___

Re: [rules-users] eval in DSL

2011-03-10 Thread Saleem Lakhani
, 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

Re: [rules-users] eval in DSL

2011-03-10 Thread Saleem Lakhani
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

[rules-users] Need Help writing then part in DSLR

2011-03-09 Thread Saleem Lakhani
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};

Re: [rules-users] Need Help writing then part in DSLR

2011-03-09 Thread Saleem Lakhani
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

Re: [rules-users] HELP - Problem creating package -validateUniqueRuleNames(PackageBuilder.java:830)

2011-03-04 Thread Saleem Lakhani
* 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

Re: [rules-users] HELP - Problem creating package-validateUniqueRuleNames(PackageBuilder.java:830)

2011-03-04 Thread Saleem Lakhani
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 -

[rules-users] Problem creating package - validateUniqueRuleNames(PackageBuilder.java:830)

2011-03-03 Thread Saleem Lakhani
Following is my code: KnowledgeBuilderConfiguration kbc = KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(); kbc.setProperty(drools.dialect.java.compiler, JANINO); KnowledgeBuilder builder = null; builder = KnowledgeBuilderFactory.newKnowledgeBuilder(kbc); Reader drlSource =

[rules-users] PackageBuilderConfiguration

2011-03-02 Thread Saleem Lakhani
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

Re: [rules-users] PackageBuilderConfiguration

2011-03-02 Thread Saleem Lakhani
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

Re: [rules-users] PackageBuilderConfiguration

2011-03-02 Thread Saleem Lakhani
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

[rules-users] java.lang.RuntimeException: Unexpected global

2011-03-02 Thread Saleem Lakhani
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

[rules-users] PackageBuilderConfiguration

2011-02-25 Thread Saleem Lakhani
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:

Re: [rules-users] Eclipse IDE not validating .drl files

2011-02-17 Thread Saleem Lakhani
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

[rules-users] dsl file in other folder

2011-02-17 Thread Saleem Lakhani
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

Re: [rules-users] dsl file in other folder

2011-02-17 Thread Saleem Lakhani
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

Re: [rules-users] dsl file in other folder

2011-02-17 Thread 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

Re: [rules-users] DSL file in other package/folder

2011-02-17 Thread Saleem Lakhani
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

[rules-users] Upgrading from Drools 2 to 5

2011-02-11 Thread Saleem Lakhani
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

Re: [rules-users] Upgrading from Drools 2 to 5

2011-02-11 Thread Saleem Lakhani
? 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

[rules-users] Simple question

2008-04-03 Thread Saleem Lakhani
: PersonTO() Please help. Saleem Lakhani ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] (no subject)

2008-03-20 Thread Saleem Lakhani
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

[rules-users] Comparing two object values

2007-11-26 Thread Saleem Lakhani
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

[rules-users] String evaluation

2007-08-24 Thread Saleem Lakhani
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

[rules-users] Minor Issue in writing DSL

2007-08-21 Thread Saleem Lakhani
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

RE: [rules-users] Minor Issue in writing DSL

2007-08-21 Thread Saleem Lakhani
. 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

[rules-users] Unable to return Declaration for identifier

2007-08-21 Thread Saleem Lakhani
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

[rules-users] Tutorial

2007-08-17 Thread Saleem Lakhani
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