Re: [rules-users] Why all rule condition fired when insert object in drools session?

2013-01-26 Thread Mark Proctor
On 26 Jan 2013, at 12:37, Zhao Yi wrote: > Hi Frank, > > Your proposal will definitely solve my issue. But from drools point of view, > only the rule who got focus is allowed to be fired. Why does drools runtime > check non-focus rule condition? I think this is useless check right? It's an intri

Re: [rules-users] Why all rule condition fired when insert object in drools session?

2013-01-26 Thread Wolfgang Laun
Look at it this way: if you load your gun only when you want to fire it, you'll be way too slow and likely to be shot dead before you can pull the trigger. ;-) This comparison is not entirely wanton. It's much more efficient for a Rete network to deal with all rules simultaneously than to maintain

Re: [rules-users] Stateful Session giving major issues

2013-01-26 Thread Wolfgang Laun
SSI ssi = (SSI)hm.get("pa_cycle_ssi"); assert "ES".equals(ssi.getCD()) && "Y".equals( ssi.getEOC_IN()) && "N".equals( ssi.getIN() ); CMPG_REF cmpRef = (CMPG_REF)hm.get("pa_cmpg_ref"); assert ... etc. -W On 26/01/2013, starfish15 wrote: > > Hi laune, > > I am sorry, i didnt

Re: [rules-users] Why all rule condition fired when insert object in drools session?

2013-01-26 Thread Zhao Yi
Hi Frank, Your proposal will definitely solve my issue. But from drools point of view, only the rule who got focus is allowed to be fired. Why does drools runtime check non-focus rule condition? I think this is useless check right? In addition, what do you mean by "the agenda-group is faster than

Re: [rules-users] Question about Drools Spring, StatelessKnowledgeSession and globals

2013-01-26 Thread Patrick van Kann
Hi metatech, Thanks for the response. Yes, I agree that my naive approach wouldn't work due to the disposal of the commands but I think your approach would. As it happens, I plan to use Spring and Drools together in a future project so will try to check out your patch... although ironically I tend

Re: [rules-users] Stateful Session giving major issues

2013-01-26 Thread Michael Anstis
You show the rules. You show extraction of Facts from a HashMap. You do not show the Fact's values. Why should we therefore believe the rule should activate? On 26 January 2013 11:46, starfish15 wrote: > > Hi laune, > > I am sorry, i didnt understand the ISSUE much. What do you mean by any >

Re: [rules-users] Stateful Session giving major issues

2013-01-26 Thread starfish15
Hi laune, I am sorry, i didnt understand the ISSUE much. What do you mean by any PROOF??? I would appreciate if you could you be more specific Regards, Starfish -- View this message in context: http://drools.46999.n3.nabble.com/Stateful-Session-giving-major-issues-tp402183

Re: [rules-users] Stateful Session giving major issues

2013-01-26 Thread Wolfgang Laun
On 26/01/2013, starfish15 wrote: > Hello, > > I am using Drools 5.2. I am not sure why not able to find the result here. > I am supposed to get the value from the Action in this rule as shown below. > But its never found. Kindly assist me with what is it that i have'nt > included. You haven't inc