Re: [rules-users] Re: query on "modify"

2008-06-24 Thread Prem Kumar L
Thanks Alex. Your suggestion worked. Prem Alexander Claus wrote: package com.sample import org.domain.CreditCard; rule "Credit Eligibility" no-loop true when cc : CreditCard( age > 18, annualIncome > 5, asset> 50 ) then cc.setEligibilityStatus( "Eligible for cred

Re: [rules-users] Business rule name weirdness

2008-06-24 Thread Scott Reed
Can you verify that you are not running a compiled version of the old rules (perhaps by adding System.out.println("New version"); to the LHS in the new rules)? Keith Bennett wrote: Does anyone have any idea why drools.getRule().getName() inside of the rule consequence would be returning the ol

[rules-users] Unable to load dialect 'org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel'

2008-06-24 Thread Ojwang Wilson O
Hi, I am currently having an error "RuleBaseTask failed: Unable to load dialect 'org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel'" while trying to build drl to pkg using Ant from a DroolsTest that was created by default in eclipse when one select new->other->Drools->Rules

Re: [rules-users] Advice sought on choosing Stateful or Stateless sessions

2008-06-24 Thread Mark Proctor
Ron Kneusel wrote: Greetings! I read through the manual, but it is a little too terse regarding when one might choose Stateless versus Stateful sessions. My initial testing has been with Stateful sessions and these work nicely but memory use explodes as the number of facts added increases mu

[rules-users] Advice sought on choosing Stateful or Stateless sessions

2008-06-24 Thread Ron Kneusel
Greetings! I read through the manual, but it is a little too terse regarding when one might choose Stateless versus Stateful sessions. My initial testing has been with Stateful sessions and these work nicely but memory use explodes as the number of facts added increases much beyond 100. So,

[rules-users] Business rule name weirdness

2008-06-24 Thread Keith Bennett
Does anyone have any idea why drools.getRule().getName() inside of the rule consequence would be returning the old business rule name? I renamed the business rule, and I am seeing through testing that the old name is being resolved by Drools at runtime, not the new one. What the heck is going on?

Re: [rules-users] DSL debugging?

2008-06-24 Thread Barry Kaplan
Also, I get these below errors, which seems to indicate that something is very wrong with rule parser. Like it cannot parse anything because of the expander? [25] Unable to expand: Strategy strategy = new Strategy(drools.getRule().getName(), 1, [26] Unable to expand: new

[rules-users] DSL debugging?

2008-06-24 Thread Barry Kaplan
I have a very simple DSL snippet: PPositionQuantityAllocatedToLegs {position} {rulePriority}= Integer(intValue < {position}.quantity) from accumulate( StrategyLeg(priority > {rulePriority}, instrument == {position}.instrument, longShort == {position}.longShort, legQuantity : quantity) legsQu

Re: [rules-users] Problems with drools-4.0.7 examples

2008-06-24 Thread Stephen Schaub
Thanks for the tip, Mark. I did what you suggested, and got the necessary libraries added to the project build configuration. I can run the HelloWorldExample, and there are no compile errors for any of the .java project files. However, there are still lots of errors reported for the .drl files. Wh

[rules-users] Eclipse plugin error: DRL-files in multiple folders?

2008-06-24 Thread Tobias Abstreiter
Hi! I have a problem using the drools Eclipse plugin 4.0.7 (with Drools 4.0.7). In our project rules are located in different folders. One of it is called "global" (containing many functions, imports, ...) whereon most of the rules in the other folders depend. The package name is identical. Run

[rules-users] Drools memory use issues

2008-06-24 Thread Ron Kneusel
Greetings! I'm using Drools 4 and have a simple test setup with 4 rules. If I run with a few facts (simple objects that hold a type and a floating point value only) everything works as advertised. If I bump the number of facts up to 100 it runs most of the time without changing the defaults

[rules-users] Re: query on "modify"

2008-06-24 Thread Alexander Claus
package com.sample import org.domain.CreditCard; rule "Credit Eligibility" no-loop true when cc : CreditCard( age > 18, annualIncome > 5, asset> 50 ) then cc.setEligibilityStatus( "Eligible for credit card" ); System.out.println("Valid Credit Score ");

Re: [rules-users] Problems with drools-4.0.7 examples

2008-06-24 Thread Mark Proctor
it seems an incorrect .project was committed, it's easy to fix. Just remove anything from the project dependencies and then right click and select "convert to drools" Should do the job. Mark Stephen Schaub wrote: I am new to Drools. I downloaded the drools-4.0.7 examples from http://downloa

[rules-users] Problems with drools-4.0.7 examples

2008-06-24 Thread Stephen Schaub
I am new to Drools. I downloaded the drools-4.0.7 examples from http://download.jboss.org/drools/release/4.0.7.19894.GA/drools-4.0.7-examples.zip I have Eclipse 3.3 with the GEF dependency, and installed the Drools plugins. I then imported the drools examples into a clean Eclipse workspace. I'm

[rules-users] query on "modify"

2008-06-24 Thread Prem Kumar L
Hi, I tried creating/compiling/executing the following rule using the drools eclipse workbench: package com.sample import org.domain.CreditCard; rule "Credit Eligibility" no-loop true when cc : CreditCard( age > 18, annualIncome > 5, asset> 50 ) then cc.setEli

[rules-users] Rule Agent Performance : BRMS or pkg file ?

2008-06-24 Thread Cabou, Carl
Hi all, I'm using Drools 4.0.7. I use the Drools api in my application with the rule Agent as describe in the section 9.4.4.1 of the documentation and it works fine. Since our application is running under weblogic 8.1, we must use JBoss for BRMS because weblogic 8.1 is not java5 compliant, b

Re: RE: [rules-users] Rules with Lookup Tables...

2008-06-24 Thread manyasri.m
Hi Edson, I can't understand validate Rules with Lookup Tables... conditon is like, = value_lookup_type_code should be a valid lookup type == In this case value_lookup_type_code column is empployee table and lookuptype is another table. In lookuptype table diff col