Hi,
I am using (modify) to alter the value of a slot in a definstance fact which is mapped
onto
an instance of a bean.
(defrule startup => (modify 1 (name "Emmeline")))
The I try to print the value of the bean property inside the Java program and it
displays
fine. The funny thing is that before and after I print out the property, the use of
(facts) shows
the following output. The slot in the definstance fact is not changed! Why is this so?
r.reset();
r.executeCommand("(batch JessBean.clp)");
r.run();
r.executeCommand("(facts)");
System.out.println(bean.getName());
r.executeCommand("(facts)");
Output:
f-0 (initial-fact)
f-1 (mybean (class <External-Address:java.lang.Class>) (name "Mimi") (OBJECT <
External-Address:MyBean>))
For a total of 2 facts.
Emmeline
f-0 (initial-fact)
f-1 (mybean (class <External-Address:java.lang.Class>) (name "Mimi") (OBJECT <
External-Address:MyBean>))
For a total of 2 facts.
Thanks in advance. Cheers...
--
Regards,
Jerry
---------------------------------------------------------------------
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]
---------------------------------------------------------------------