This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am new to drools. I am using Drools 3.0.6. When I execute just one rule, it works fine. But when I run the same file with 2 or more rules, at runtime in console the SOPs stops at
org.apache.commons.jci.compilers.JaninoJavaCompiler - compiling com.tcs.sgv.apps.requesthandler.services.Rule_Credit_Denied_0
Same example works fine in Eclipse and both rules are executed, but my constraints are jDeveloper, jdk1.4, OC4J. Can someone help me out
Following is my .java file code
PackageBuilder builder = new PackageBuilder();
RuleBase ruleBase = RuleBaseFactory.newRuleBase();
WorkingMemory workingMemory = ruleBase.newWorkingMemory();
Person child = new Person("Person 1", 15);
Person adult = new Person("Person 2", 25);
Following is my .drl file
rule "Credit Allowed"
person:Person(age >= 18)
System.out.println("Credit allowed for " + person.getName());
rule "Credit Denied"
deniedPerson:Person(age < 18)
System.out.println("Credit denied for " + deniedPerson.getAge());
Thanks for any solution/replies
Joined: Apr 17, 2009
Can anyone please help me out with Drools 3.0.6
Thanks & Regards,
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Drools 3.0.6 - Not able to execute more than one rule