JESS: Getting asserted fact from Activation object in JessListener

2011-08-04 Thread Dwight Hare
In my JessListener I looked at all of the facts from the Token gotten from the Activation. I see all the facts matched in the patterns, but I want access to the fact asserted in the action clause. So if my rule is: (defrule SIRS ?ab <- (logical (AbnormalTemperature)) ?ev

Re: JESS: Getting asserted fact from Activation object in JessListener

2011-08-04 Thread Dwight Hare
Thanks, that works. Dwight On 8/4/2011 8:01 AM, Wolfgang Laun wrote: You can listen for JessEvent.DEFRULE_FIRED events. Any successive JessEvent.FACT events (up to certain other events) are assert results executed on the RHS of that rule. -W ---

JESS: Setting fact slot value in JessListener

2011-09-13 Thread Dwight Hare
In my JessListener I want to set a slot value on the fact that I get on a Fact Event. I tried Rete.modify to modify the fact but got an exception that the fact was not in active memory. So figuring that the fact had not yet been added to the system I tried calling setSlotValue on the fact but th

JESS: [EXTERNAL] Jess asserts fact that is not true

2012-06-26 Thread Dwight Hare
I am trying to reason about the passage of time in my rules. I would like to write the following rule: (defrule Test ?r <- (logical (CurrentTime)) (logical (Condition (time ?time&:(> (+ ?time 5) ?r.t => (assert (Condi

RE: JESS: [EXTERNAL] Jess asserts fact that is not true

2012-06-27 Thread Dwight Hare
Wolfgang Laun Sent: Tuesday, June 26, 2012 9:59 PM To: jess-users@sandia.gov Subject: Re: JESS: [EXTERNAL] Jess asserts fact that is not true On 26/06/2012, Dwight Hare wrote: > I am trying to reason about the passage of time in my rules. I would > like to write the following

JESS: [EXTERNAL] Corrupted Negcnt Error

2013-05-30 Thread Dwight Hare
During a run I started getting the error Jess reported an error in routine NodeNot2.tokenMatchesRight while executing rule LHS (Node2) while executing rule LHS (TECT). Message: Corrupted Negcnt (< 0) . Any idea what this means? Dwight

RE: JESS: [EXTERNAL] Corrupted Negcnt Error

2013-05-30 Thread Dwight Hare
I think any bugs that trigger this assert were found and fixed long ago. From: owner-jess-us...@sandia.gov<mailto:owner-jess-us...@sandia.gov> [mailto:owner-jess-us...@sandia.gov] On Behalf Of Dwight Hare Sent: Wednesday, May 29, 2013 5:05 PM To: jess-users Subject: JESS: [EXTERNAL] Co