[rules-users] Newbie question

2011-08-28 Thread johnysums
Im trying to use drools in my gwt application, but i dont know what module im supposed to include in the gwt xml file; they all give me "Unable to find..." -- View this message in context: http://drools.46999.n3.nabble.com/Newbie-question-tp3291994p3291994.html Sent from the Drools: User forum ma

Re: [rules-users] rule parse error for null check

2011-08-28 Thread Wolfgang Laun
See JBRULES-3064 , dialect "mvel" flouts generic parameters. If you omit "" after "new HashMap" all is well. Of course, this is another MVEL bug or restriction - who knows. But don't try to work around this by then if($u.subjectGradeMap == null){

Re: [rules-users] fireAllRules() doesn't return back

2011-08-28 Thread Wolfgang Laun
You are adding 100 to a non-existing Map entry. Doing this in Java code like e.g. HashMap m = $u.getSubjectGradeMap(); m.put( "CompSc", m.get( "CompSc" ) + 100 ); would have thrown a NullPointerException, and you would have seen the problem. MVEL, with its balmy-barmy way of hiding the rea

Re: [rules-users] fireAllRules() doesn't return back

2011-08-28 Thread Esteban Aliverti
It hangs? Or the rule get executed once and again? I don't see anything wrong with your rule. Are you sure you are not doing any update() od modify() inside your rule? Can you share with us how are you creating and interacting with the knowledge base? Best Regards, XXX

[rules-users] rule parse error for null check

2011-08-28 Thread Neel
Hi,I'm using drools-5.3.0.Beta1. I've following rule file: import java.util.*; declare Student    name : String @key    subjectGradeMap : HashMap    end   rule "Subject grade points" dialect "mvel" when    $u : Student() then    if($u.subjectGradeMap == null)    {       $u.subjectGradeMap = new Ha

[rules-users] fireAllRules() doesn't return back

2011-08-28 Thread Neel
Hi,I'm using drools-5.3.0.Beta1. I've following rule definition: import java.util.*; declare Student    name : String @key    subjectGradeMap : HashMap    end   rule "Subject grade points" dialect "mvel" when    $u : Student() then    $u.subjectGradeMap["CompSc"] += 100;    System.out.println("M

[rules-users] java.lang.NoSuchFieldError: DESCR

2011-08-28 Thread rahulkrishnan
Am a newbe to the Drools. When am trying http://www.softwarepassion.com/getting-started-with-drools-flow/ tutorial to run the program in this tutorial it is giving this exception Exception in thread "main" java.lang.NoSuchFieldError: DESCR at org.drools.compiler.PackageBuilder.addKnowled

[rules-users] Drools and OpenJPA

2011-08-28 Thread eggeral
Hi all, I am trying to get Drools working with OpenJPA. Currently I am stuck on the named query "ProcessInstancesWaitingForEvent". The term "in elements(..." seams to be Hibernate specific and can not be compiled by the OpenJPA JPQL compiler. Is there any workaround for this problem? thx

Re: [rules-users] best way to write this rule?

2011-08-28 Thread Wolfgang Laun
On 28 August 2011 01:23, Warner Onstine wrote: > > As a player I have: > - a list of badges I am in progress of completing > And also a list of badges a player already has, to avoid acquiting it over and over again. > - something I've just done that could go towards one or more of these > badg