Re: [rules-users] Possible problem in PathMemory

2014-06-16 Thread raojinghai
Hi Mario, Awesome. Thank you so much for fixing it promptly. Thanks. Jinghai On Mon, Jun 16, 2014 at 6:42 AM, Mario Fusco wrote: > Hi Jinghai, > > I reproduced the problem you reported and pushed a fix for it: > https://github.com/droolsjbpm/drools/commit/83f80c83f > > Your reproducer have b

Re: [rules-users] Possible problem in PathMemory

2014-06-16 Thread Mario Fusco
Hi Jinghai, I reproduced the problem you reported and pushed a fix for it: https://github.com/droolsjbpm/drools/commit/83f80c83f Your reproducer have been very very helpful. Thanks a lot, Mario -- View this message in context: http://drools.46999.n3.nabble.com/Possible-problem-in-PathMemory-

Re: [rules-users] Possible problem in PathMemory

2014-06-13 Thread raojinghai
Hi Michael, Here I use global static variables to store the dynamic salience values. I tried with facts and the results are all the same. Thanks. Jinghai On Fri, Jun 13, 2014 at 4:22 PM, Michael Anstis wrote: > I could be wrong but I thought dynamic salience used facts in working > memory an

Re: [rules-users] Possible problem in PathMemory

2014-06-13 Thread Michael Anstis
I could be wrong but I thought dynamic salience used facts in working memory and hence your RHS would need to signal changes to the salience variables. Sent on the move On 14 Jun 2014 00:01, wrote: > Hi Mario, > > I figured out this is a problem with Event and dynamic salience. Suppose > we have

Re: [rules-users] Possible problem in PathMemory

2014-06-13 Thread raojinghai
Hi Mario, Thanks for your prompt reply. My code base already has the fix and it doesn't fix my problem. I will try to narrow down the problem before submitting a ticket. Thanks. Jinghai On Fri, Jun 13, 2014 at 5:09 AM, Mario Fusco wrote: > Hi, > > I don't think your problem is caused by tha

Re: [rules-users] Possible problem in PathMemory

2014-06-13 Thread Mario Fusco
Hi, I don't think your problem is caused by that. More likely this is caused by the issue reported here https://issues.jboss.org/browse/DROOLS-335 that I fixed with this commit https://github.com/droolsjbpm/drools/commit/f8f721056e36f8e0370c2783875ff0c26ef0629e Can you check if your code base alr

Re: [rules-users] Possible problem in PathMemory

2014-06-12 Thread raojinghai
Hi, I recall this email. After trying with more examples, I notice if I reverse the order, the non-dynamic salience will not work. Thanks. Jinghai On Thu, Jun 12, 2014 at 11:03 AM, rjh wrote: > Hello, > > I developed a system where dynamic salience for some particular rules > doesn't rules.

[rules-users] Possible problem in PathMemory

2014-06-12 Thread rjh
Hello, I developed a system where dynamic salience for some particular rules doesn't rules. However, it is very hard for me to create a simple test case unless I publish the entire rule files. In the system, some rules using dynamic salience work and some don't, but I don't know why. I debugged i