Re: [rules-users] Accumulate in Drools

2010-08-18 Thread Manav
-users@lists.jboss.org Subject: Re: [rules-users] Accumulate in Drools    Which version of MVEL are you using?   Edson 2010/8/17 Manav manav7574 at yahoo.com Here's the modified rule : rule Test Accumulate Function when   $p : ProductType ($name : name)   $min_score : Number ()   from

Re: [rules-users] Accumulate in Drools

2010-08-17 Thread Manav
  From: Edson Tirelli tire...@post.com To: Manav manav7...@yahoo.com; 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

Re: [rules-users] Accumulate in Drools

2010-08-17 Thread Edson Tirelli
*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 (Client (productTypeExperience.keySet contains $name, $score

Re: [rules-users] Accumulate in Drools

2010-08-16 Thread Wolfgang Laun
On 16 August 2010 05:43, Manav manav7...@yahoo.com 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

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],

Re: [rules-users] Accumulate in Drools

2010-08-16 Thread Manav
From: Edson Tirelli tire...@post.com To: Manav manav7...@yahoo.com; 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 use

Re: [rules-users] Accumulate in Drools

2010-08-16 Thread Edson Tirelli
*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 (Client (productTypeExperience.keySet contains $name, $score

Re: [rules-users] Accumulate in Drools

2010-08-16 Thread Wolfgang Laun
This isn't quite right: 2010/8/16 Edson Tirelli tire...@post.com 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 Manav
tire...@post.com To: Manav manav7...@yahoo.com; 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 use it as part of an expression. So

[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