I understand I can use deftemplate to create a fact using a JavaBean. Using
example from documentation.
JESS>(defclass simple ExampleBean)
JESS> (ppdeftemplate simple)
(deftemplate simple extends __fact "$JAVA-OBJECT$ ExampleBean"
(slot class (default
<External-Address:jess.SerializablePropertyDescriptor>))
(slot name (default
<External-Address:jess.SerializablePropertyDescriptor>))
(slot OBJECT (type 2048)))
Jess> (bind ?sb (new ExampleBean))
<External-Address:ExampleBean>
Jess> (definstance simple ?sb static)
<Fact-0>
Jess> (facts)
f-0 (simple (class <External-Address:java.lang.Class>)
(name "Bob")
(OBJECT <External-Address:ExampleBean>))
The question is how do I define a rule which will be fired when I f-0
occurs.
Aditya Deshpande
UnwiredSoft (I) Ltd
www.unwiredsoft.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]
---------------------------------------------------------------------