On Jan 28, 2008, at 5:10 AM, Florian Fischer wrote:

Hello,

I have an issue with JESS where I wonder which is the best solution.

- Is there a way to send a propertyChangeEvent with a list of changed fields?

Not exactly, but the JavaBeans spec allows, and Jess supports, null property names. If the property name (and the values) are null, then Jess looks at all the properties to see which ones have changed and modifies just those.

- Is there a way to reload a shadow fact and ask JESS to sort out which field has actually changed?
or more generally:


In recent versions of Jess there's the Rete.updateObject() method, which asks Jess to examine the object and make sure working memory is in sync. It can be used as an alternative to PropertyChangeEvents when you have sufficient control over external object modification.

---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550                 http://www.jessrules.com

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to