Re: [rules-users] Update vs insert

2008-09-11 Thread Shyam, Pallav (MSCIBARRA)
Very strange. The facts are passed into the WM by-reference. Therefore the query should work after calling the person.setClassName(Math) on the fact. And this should work without calling the insert or update. This leaves me guessing that the query does not work on the facts directly, instead

Re: [rules-users] getting latest date

2008-09-11 Thread Shyam, Pallav (MSCIBARRA)
rule when m : MemberDataRecords( d : loggedInDate) from Data( ) and not MemberDataRecords( loggedInDate d) from Data( ) then end From: [EMAIL PROTECTED] To: rules-users@lists.jboss.org Sent: Thu Sep 11 19:05:22 2008 Subject: [rules-users] getting latest

Re: [rules-users] Update vs insert

2008-09-11 Thread Shyam, Pallav (MSCIBARRA)
Title: Re: [rules-users] Update vs insert To add to what I said below the re-insert will fail silently and the previously inserted fact will be returned. - Original Message - From: Shyam, Pallav (MSCIBARRA) To: 'rules-users@lists.jboss.org' rules-users@lists.jboss.org Sent: Thu

RE: [rules-users] looping problem

2008-09-10 Thread Shyam, Pallav (MSCIBARRA)
Thomas, Everytime you update a fact in the WM, it is matched against all the rules. An activation is created for all such matching cases. In your example whenever the fact is updated in Rule 2, two activations are created, one for Rule 1 and one for Rule 2. Rule 2 doesn't get fired because of

[rules-users] RE: logging with WorkingMemoryEventListener

2008-09-08 Thread Shyam, Pallav (MSCIBARRA)
try this public String toString() { return super.toString() + Type: + type; } From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of thomas kukofka Sent: Monday, September 08, 2008 2:04 PM To: Rules Users List Cc: Shyam, Pallav

Re: [rules-users] logging with WorkingMemoryEventListener

2008-09-05 Thread Shyam, Pallav (MSCIBARRA)
You can override the toString method of InputObject to return the type information. From: [EMAIL PROTECTED] To: Rules Users List Sent: Fri Sep 05 22:31:04 2008 Subject: [rules-users] logging with WorkingMemoryEventListener Hello, I want to use

RE: [rules-users] Check the condition is TRUE during a period of time

2008-09-03 Thread Shyam, Pallav (MSCIBARRA)
Here is how you can achieve this: rule Init salience 10 when exists FactObject(condition != true) then insertLogical(new Stop()) end rule Your Business rule when not Stop() //some other

[rules-users] Variable assignment in DSL

2008-09-03 Thread Shyam, Pallav (MSCIBARRA)
I have a DSL [condition][]There is a Volume where {constraints}=v : RawVolumeTs ( where {constraints} ) [condition][]where {attr} is {value}={attr} == {value} [condition][]and {attr} is {value}=, {attr} == {value} And here is my business rule using the above dsl(the dslr file) dialect java

FW: [rules-users] Variable assignment in DSL

2008-09-03 Thread Shyam, Pallav (MSCIBARRA)
I have a DSL [condition][]There is a Volume where {constraints}=v : RawVolumeTs ( where {constraints} ) [condition][]where {attr} is {value}={attr} == {value} [condition][]and {attr} is {value}=, {attr} == {value} And here is my business rule using the above dsl(the dslr file) dialect java

RE: [rules-users] Checking facts between them

2008-09-02 Thread Shyam, Pallav (MSCIBARRA)
rule compare dates when FactObject($d1 : date) FactObject(date == $d1) then end This assumes there is an object FactObject with attribute date. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Delaunay

[rules-users] FW: Sequential Mode with Sequential or Dynamic Agenda

2008-09-02 Thread Shyam, Pallav (MSCIBARRA)
posting my query again and hoping to get an answer soon. Hi All, I am trying to figure out when to use Sequential Mode. Also, what does SequentailAgenda.SEQUENTIAL and SequentialAgenda.DYNAMIC means. rule asset 1000 when s : Security( status == NOT VALIDATED, country == USA,

Re: [rules-users] Turning on and off a particular rule

2008-09-01 Thread Shyam, Pallav (MSCIBARRA)
Title: Re: [rules-users] Turning on and off a particular rule To turn off a rule write enabled false on the line after the rule name. Pallav - Original Message - From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: Rules Users List rules-users@lists.jboss.org Sent: Tue Sep 02 02:20:27