Re: [rules-users] Caching results in temperory variables

2010-08-16 Thread Swindells, Thomas
Cc: rules-users@lists.jboss.org Sent: Fri, August 13, 2010 11:41:53 PM Subject: Re: [rules-users] Caching results in temperory variables On 13 August 2010 18:36, Manav mailto:manav7...@yahoo.com>> wrote: Your explanation is absolutely superb. I modified my drl as per your suggestions and

Re: [rules-users] Caching results in temperory variables

2010-08-13 Thread Manav
nt: Fri, August 13, 2010 11:41:53 PM Subject: Re: [rules-users] Caching results in temperory variables On 13 August 2010 18:36, Manav wrote: Your explanation is absolutely superb.  I modified my drl as per your suggestions and it's just been completely transformed. Just one question rega

Re: [rules-users] Caching results in temperory variables

2010-08-13 Thread Wolfgang Laun
On 13 August 2010 18:36, Manav wrote: > Your explanation is absolutely superb. I modified my drl as per your > suggestions and it's just been completely transformed. Just one question > regarding one suggestion below : > > -- is this something like a for each loop in java . This is the first > e

Re: [rules-users] Caching results in temperory variables

2010-08-13 Thread Manav
   setLangScore($name, $_score)     } end From: Wolfgang Laun To: Manav ; Rules Users List Sent: Fri, August 13, 2010 1:37:45 PM Subject: Re: [rules-users] Caching results in temperory variables See inline annotations. On 13 August 2010 04:34, Manav wrote: Thanks for your re

Re: [rules-users] Caching results in temperory variables

2010-08-13 Thread Wolfgang Laun
d, language.keySet contains $name", $f_score : language[$name]) $urslt : UserResult (id == $id <http://usr.id/>, langScore.keySet not contains $name ) then modify( $usrlt ){ setLangScore($name, $_score) } end HTH --W > > > - Original Message

Re: [rules-users] Caching results in temperory variables

2010-08-12 Thread Manav
he db end Regards, Manav - Original Message ---- From: Greg Barton To: Manav ; Rules Users List Sent: Thu, August 12, 2010 9:29:28 PM Subject: Re: [rules-users] Caching results in temperory variables You must either update an existing working memory object or insert a new working memory

Re: [rules-users] Caching results in temperory variables

2010-08-12 Thread Greg Barton
You must either update an existing working memory object or insert a new working memory object with the results. That's how rules communicate with each other. GreG On Aug 12, 2010, at 10:31 AM, Manav wrote: Hi, I am using the version 5.x of drools and i have a scenario where i want to hold

[rules-users] Caching results in temperory variables

2010-08-12 Thread Manav
Hi, I am using the version 5.x of drools and i have a scenario where i want to hold the result of a test in one rule to a temperory variable . This result will then be used in another rule that will be fired later in the sequence . For ex : salience 100 when     User (language.keySet con