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
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 ...
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)
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