Re: JESS: Jess newbie does not know how to ....

2008-03-05 Thread Wolfgang Laun
The object behind the shadow fact is available in the slot OBJECT. Simply bind that slot to a Jess variable: (MC ... (OBJECT ?mcObj)) --- (call ?mcObj setPassed TRUE) If MC is sufficiently beanish you have a slot Passed and can use modify with some variable bound to the fact which will

Re: JESS: Jess newbie does not know how to ....

2008-03-05 Thread vanhaabe
Still no progress. Can't bind OBJECT, error I'm getting is Undefined function OBJECT. Can you please elaborate to call OBJECT in cpl file. Thanks, E Wolfgang Laun wrote: The object behind the shadow fact is available in the slot OBJECT. Simply bind that slot to a Jess variable: (MC ...

Re: JESS: Jess newbie does not know how to ....

2008-03-05 Thread Wolfgang Laun
Notice that updates via (call ) to the Java object require that the bean does property change notification, as described in section 5.3.3, to update the shadow fact. ; class Host with attributes firstName, lastName (deftemplate Host (declare (from-class at.laune.project.Host))) (reset)

Re: JESS: Jess newbie does not know how to ....

2008-03-05 Thread vanhaabe
Much better now. Thanks. E Wolfgang Laun wrote: Notice that updates via (call ) to the Java object require that the bean does property change notification, as described in section 5.3.3, to update the shadow fact. ; class Host with attributes firstName, lastName (deftemplate