Re: [rules-users] Accumulate in Drools

2010-08-18 Thread Manav
time exception that i am getting is > Caused by: org.drools.RuntimeDroolsException: >  [Error: unable to resolve method: java.util.HashMap.$name() [arglength=0]] > [Near : {... Unknown }] > > Regards, > Manav > ____ From: Edson Tirelli To: Manav ;

Re: [rules-users] Accumulate in Drools

2010-08-17 Thread Edson Tirelli
rs List < > rules-users@lists.jboss.org> > *Sent:* Mon, August 16, 2010 7:46:54 PM > *Subject:* Re: [rules-users] Accumulate in Drools > > You can't use the cast and the method call in a regular constraint. > You can use it as part of an expression. S

Re: [rules-users] Accumulate in Drools

2010-08-17 Thread Manav
wn }] Regards, Manav   From: Edson Tirelli To: Manav ; Rules Users List Sent: Mon, August 16, 2010 7:46:54 PM Subject: Re: [rules-users] Accumulate in Drools      You can't use the cast and the method call in a regular constraint. You can use i

Re: [rules-users] Accumulate in Drools

2010-08-16 Thread Manav
To: Manav ; Rules Users List Sent: Mon, August 16, 2010 7:46:54 PM Subject: Re: [rules-users] Accumulate in Drools      You can't use the cast and the method call in a regular constraint. You can use it as part of an expression. So:  $min_score : Number ()    from accumulate (C

Re: [rules-users] Accumulate in Drools

2010-08-16 Thread Wolfgang Laun
This isn't quite right: 2010/8/16 Edson Tirelli > You can't use the cast and the method call in a regular constraint. > You can use it as part of an expression. So: > > $min_score : Number () >from accumulate (Client (productTypeExperience.keySet contains $name, >

Re: [rules-users] Accumulate in Drools

2010-08-16 Thread Edson Tirelli
son Tirelli > *To:* Manav ; Rules Users List < > rules-users@lists.jboss.org> > *Sent:* Mon, August 16, 2010 7:46:54 PM > *Subject:* Re: [rules-users] Accumulate in Drools > > You can't use the cast and the method call in a regular constraint. > You can u

Re: [rules-users] Accumulate in Drools

2010-08-16 Thread Manav
rds, Manav From: Edson Tirelli To: Manav ; Rules Users List Sent: Mon, August 16, 2010 7:46:54 PM Subject: Re: [rules-users] Accumulate in Drools      You can't use the cast and the method call in a regular constraint. You can use it as part of an expression. So:  $min_score : Number ()    

Re: [rules-users] Accumulate in Drools

2010-08-16 Thread Edson Tirelli
You can't use the cast and the method call in a regular constraint. You can use it as part of an expression. So: $min_score : Number () from accumulate (Client (productTypeExperience.keySet contains $name, $score : productTypeExperience[$name], mi

Re: [rules-users] Accumulate in Drools

2010-08-16 Thread Wolfgang Laun
On 16 August 2010 05:43, Manav wrote: > Hi, > I am trying my hand at the accumulate function in Drools 5.x but the drl > fails > to compile. > Error message, please. -W > Not sure what's wrong with it. Please help. > This is the sample that i am working with > > rule "Test Accumulate Function"

[rules-users] Accumulate in Drools

2010-08-15 Thread Manav
Hi, I am trying my hand at the accumulate function in Drools 5.x but the drl fails to compile. Not sure what's wrong with it. Please help. This is the sample that i am working with rule "Test Accumulate Function" when  $p : ProductType ($name : name)  $min_score : Number ()    from accumulate