JESS: Getting asserted fact from Activation object in JessListener
"Dwight Hare" <[email protected]> Wed, 3 Aug 2011 17:30:41 -0700
| Newsgroups | gmane.comp.java.jess |
|---|---|
| Message-ID | <B96DD689550AE14286D5886F15063C5001A3EB53A968@MAILSERVER-2.office.paritycomputing.com> |
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 <- (logical (ElevatedHeartRate {patientId == ab.patientId}))
?p <- (Patient {patientId == ab.patientId})
=>
(assert (SIRS (patientId ?p.patientId)))
)
Then in the listener I see the facts matched in the pattern but I don't see the SIRS fact asserted in the action part. Can I access this asserted fact somehow?
Thanks
Dwight