Re: [rules-users] the not in expression does not work...have u ever had this issue before?

2008-04-11 Thread mmquelo massi
Sorry Guys, It was my fault! The *not in* sugar operator DOES WORK!!! I had a problem with the decision table values... So...never mind. No JIRAs for it. Thank You anyway. Massi On Wed, Apr 9, 2008 at 2:49 PM, Edson Tirelli [EMAIL PROTECTED] wrote: No, I did not had this problem

RE: [rules-users] Synch Business Object / Working Memory

2008-04-11 Thread Anstis, Michael (M.)
I guess the example is a simplification as c (in RHS) has not been bound to a fact. Anyway, that aside, do you call update to ensure WM knows of changes to facts otherwise properties need to be time-constant which in your example they are not. _ From: [EMAIL PROTECTED] [mailto:[EMAIL

[rules-users] Synch Business Object / Working Memory

2008-04-11 Thread Jonathan Guéhenneux
Hi, I have two rules : rule rule 1 - 1 salience 90 ruleflow-group rfg1 when a : A( eComputed == false, c 15, d = 75) then c.setE(0); end rule rule 1 - 2 salience 10 ruleflow-group rfg1 when

[rules-users] Shouldn't inserted objects be finalized after session.dispose()?

2008-04-11 Thread Sylvain Gaudan
Hi, I thought that inserted objects should be finalized by the GC once a statefulsession is dropped by session.dispose(). However, this is done only if I retract handles one by one (session.retract(it.next())) using the method session.iterateFactHandles() and then session.dispose(). Is it

RE: [rules-users] Synch Business Object / Working Memory

2008-04-11 Thread Jonathan Guéhenneux
Ok, I think I understood well. I modified my business code, now I call if (wm != null) wm.update(wm.getFactHandle(this), this); each time a properties is modified. But it is worse. Rules that sould be activated only once actually loop, even if I add the no-loop clause. I

RE: [rules-users] Synch Business Object / Working Memory

2008-04-11 Thread Jonathan Guéhenneux
yes, i made a mistake. its a.setE(...) and not c.setE(...). I don't call update. If I dont call update, properties of an object are just read one time for all rules? Subject: RE: [rules-users] Synch Business Object / Working Memory Date: Fri, 11 Apr 2008 09:47:43 +0100 From: [EMAIL PROTECTED]

RE: [rules-users] Synch Business Object / Working Memory

2008-04-11 Thread Anstis, Michael (M.)
In essence, yes. Have a look at update in the manual (and a read on Shadow Facts will probably be useful too). _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Guéhenneux Sent: 11 April 2008 10:24 To: Rules Users List Subject: RE: [rules-users] Synch Business

RE: [rules-users] Synch Business Object / Working Memory

2008-04-11 Thread Anstis, Michael (M.)
I was thinking something more like this:- package com.sample import com.sample.Test rule rule 1 - 1 salience 90 when a : Test( computed == false, c 15, d = 75) then System.out.println(setting e to 0); a.setE(0);

RE: [rules-users] modify()

2008-04-11 Thread Anstis, Michael (M.)
I've got 4.0.5 and it mentions insert, update and retract throughout the manual. There was an API change some versions ago, but I forget when exactly. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of X10 Sent: 11 April 2008 12:34 To: Rules Users List

Re: [rules-users] modify()

2008-04-11 Thread Mark Proctor
X10 wrote: Hi, I take it the modify() that's in the manual got replaced by update()? The meanings have changed, but both exist to some degree. modify() is a specail keyword used in the java/mvel consequence. Inside a consequence it is the preferred way modify facts, so that the engine is

[rules-users] Identify bean fields used in rules

2008-04-11 Thread Sylvain Gaudan
Hi all, Is there a way to get, for each Bean Class, the list of fields that are used in a rulebase in order to optimize the amount of data loaded in a bean? Thank you for your help, Sylvain ___ rules-users mailing list rules-users@lists.jboss.org

RE: [rules-users] Synch Business Object / Working Memory

2008-04-11 Thread Jonathan Guéhenneux
Indeed, it works but I will have to use such booleans for a lot of rules. Cause my rule flow is schematically : compute A compute B(A) compute C(B) ... Perhaps I may create several ruleflows, one per independant computing? Subject: RE: [rules-users] Synch Business Object / Working Memory

Re: [rules-users] Identify bean fields used in rules

2008-04-11 Thread Mark Proctor
Sylvain Gaudan wrote: Hi all, Is there a way to get, for each Bean Class, the list of fields that are used in a rulebase in order to optimize the amount of data loaded in a bean? There is currently no official api for this. But if you look over drools-verifier in trunk you can see how it

Re: [rules-users] Shouldn't inserted objects be finalized after session.dispose()?

2008-04-11 Thread Mark Proctor
Sylvain Gaudan wrote: Hi, I thought that inserted objects should be finalized by the GC once a statefulsession is dropped by session.dispose(). However, this is done only if I retract handles one by one (session.retract(it.next())) using the method session.iterateFactHandles() and then

RE: [rules-users] Synch Business Object / Working Memory

2008-04-11 Thread Anstis, Michael (M.)
Do you need ruleflow? Perhaps this is too simple and I misunderstood. package com.sample; public class Test { private Integer a; private Integer b; private Integer c; public Integer getA() { return a; } public Integer getB() { return b; }

[rules-users] Nested Rules

2008-04-11 Thread Swathi B
Hi All, This is Swathi..this is my first post to the group. Can any one tell me whether nested rules is possible in drools rules engine? Example : Based on successful execution of one rule is there any way/means to execute another rule at a time. Thanks in Advance, Swathi. -- View this

Re: [rules-users] Nested Rules

2008-04-11 Thread Mark Proctor
Swathi B wrote: Hi All, This is Swathi..this is my first post to the group. Can any one tell me whether nested rules is possible in drools rules engine? Example : Based on successful execution of one rule is there any way/means to execute another rule at a time. The engine is fully

RE: [rules-users] Synch Business Object / Working Memory

2008-04-11 Thread Jonathan Guéhenneux
First, thank you for yours answers which are very clear. Your solution will probably work. I'm just desapointed that there is no way to synchronized the shadow with the object. That would be great for my work. Subject: RE: [rules-users] Synch Business Object / Working Memory Date: Fri, 11 Apr

[rules-users] Access to currently executing rule in consequence?

2008-04-11 Thread rrogers
Is there an easy way to access information about the currently executing rule (e.g. Name, salience, group) within a rule consequence? E.g. rule Sample Rule salience = 100 when $v : Fact(name == Test) then System.out.println(The currently executing rule is + ???.getName()); end

RE: [rules-users] Synch Business Object / Working Memory

2008-04-11 Thread Anstis, Michael (M.)
I am confident Drools supports what you are looking for; did you try update() - or modify() - in the then part of the rule (and not in Java as you code snippet)? Can you explain more the need for the computed flag on the fact? Is the value of a property set sometimes whilst calculated at other

RE: [rules-users] Access to currently executing rule in consequence?

2008-04-11 Thread Anstis, Michael (M.)
There is an implicit KnowledgeHelper object called drools available in the RHS. drools.getRule().getName() will provide what you need. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 11 April 2008 16:04 To: rules-users@lists.jboss.org Subject:

RE: [rules-users] modify()

2008-04-11 Thread Anstis, Michael (M.)
I *seem* to be able to still use update in the RHS with 4.0.5. Perhaps I've got my binaries mixed up. If I get the chance I'll do a clean install. Thanks for the clarification - I don't want to end up confusing matters with my help ;-) -Original Message- From: [EMAIL PROTECTED]

Re: [rules-users] modify()

2008-04-11 Thread Mark Proctor
Anstis, Michael (M.) wrote: I *seem* to be able to still use update in the RHS with 4.0.5. yes update has not been removed, it's still part of the main api. If we removed it you would have no way to notify the engine of changes from outside the engine, and I expect some people might be

[rules-users] Does the result of one rule can trigger the evaluation of one or more other rules.

2008-04-11 Thread Swathi B
Can you please tell me whether the result of one rule can trigger the evaluation of one or more other rules. Is there any approach for doing so in Drools?? Thanks in Advance, Swathi. -- View this message in context:

RE: [rules-users] Does the result of one rule can trigger theevaluation of one or more other rules.

2008-04-11 Thread Sikkandar Nawabjan
Yes it is quite possible provided that in the action part you need to set appropriate date that the other rule expect to trigger. ex: rule 1 when Object1(data1 == s) then Object2.setBoolValue(true) update() rule 2 when

Re: [rules-users] Does the result of one rule can trigger theevaluation of one or more other rules.

2008-04-11 Thread Swathi Bandaru
Thank you very much for your earliest response. Its really grt help. Swathi. On Fri, Apr 11, 2008 at 1:18 PM, Sikkandar Nawabjan [EMAIL PROTECTED] wrote: Yes it is quite possible provided that in the action part you need to set appropriate date that the other rule expect to trigger. ex:

[rules-users] Migrate from JBoss Rules 3.0.6 to Drools 4.0.4

2008-04-11 Thread Guptha S
I am currently using JBoss Rules 3.0.6. Do I need to go to Drools 4.0.4 for full fledged features. I started my project 1 month back. If I need to use 4.0.4 version to the existing project with 3.0.0 version, what are the things need to be done?? Thanks in Advance, Guptha. -- View this

Re: [rules-users] Migrate from JBoss Rules 3.0.6 to Drools 4.0.4

2008-04-11 Thread Edson Tirelli
http://downloads.jboss.com/drools/docs/4.0.4.17825.GA/html/index.html Section 1.2. 2008/4/11 Guptha S [EMAIL PROTECTED]: I am currently using JBoss Rules 3.0.6. Do I need to go to Drools 4.0.4 for full fledged features. I started my project 1 month back. If I need to use 4.0.4 version to

Re: [rules-users] Migrate from JBoss Rules 3.0.6 to Drools 4.0.4

2008-04-11 Thread Swathi Bandaru
Thank you very much for your response. On Fri, Apr 11, 2008 at 3:06 PM, Edson Tirelli [EMAIL PROTECTED] wrote: http://downloads.jboss.com/drools/docs/4.0.4.17825.GA/html/index.html Section 1.2. 2008/4/11 Guptha S [EMAIL PROTECTED]: I am currently using JBoss Rules 3.0.6. Do I need

[rules-users] MVEL modify block

2008-04-11 Thread Juraj Bednar
Hello, trying as hard as I can, I am not able to do method calls within MVEL modify block, as I can do with Java block. For example: modify($p) { addDescription(aaa) } This works in Java, but not in MVEL. I was not able to find out how to call methods (not set properties, which works quite