JESS: Dynamic Property Changes - Jess Java API

2008-09-08 Thread John Chrysakis
Hello again to all Jess Users, I am trying to use propertychange listeners in a simple jess application. But I am getting: Jess reported an error in routine DefinstanceList.updateMultipleSlots The application examines the Type of an event and prints different message So the EventRules.clp has

Re: JESS: Dynamic Property Changes - Jess Java API

2008-09-08 Thread John Chrysakis
To follow my question could you provide me a simple example of changing one property which in terms fires different rules? I'm a little bit confused of how I should use the property change listeners and how should I test them? Many thanks in advance!

Re: JESS: Dynamic Property Changes - Jess Java API

2008-09-08 Thread Ernest Friedman-Hill
The Jess error messages that start with Jess reported an error in routine X will always go on to provide an actual error message; here I think it would be Called routine threw an exception. Then if you called getCause() on the JessException (I talk about this in the manual, section 10.2),

Re: JESS: Dynamic Property Changes - Jess Java API

2008-09-08 Thread Wolfgang Laun
I suggest that you run (ppdeftemplate CurrentEvent) from within your EventRules.clp to see the kind of shadow fact Jess makes from your class. The code is somewhat incomplete (where is the initialization for CurrentEvent.bs?) but I surmise that Jess has a shadow fact with one slot: reading. But

Re: JESS: Dynamic Property Changes - Jess Java API

2008-09-08 Thread Ernest Friedman-Hill
Jess reacting to a PropertyChangeEvent isn't any different from calling (modify) on a regular fact; the value of one or more slots changes. You don't think in any special way about writing rules to fire when properties change, or anything like that; you just write rules to match slot or