I would like to assert facts to the jess working memory by deffacts as
below;
This is my template's facts.
*(deftemplate person (slot name)*
* (slot age))*
* (deftemplate couple (slot husband (type object))*
*(slot wife (type object)))*
So, I would like to insert two persons(john and marry)and a couple as below:
(deffacts initfacts
(person (name John)(age 38))
(person (name Marry)(age 36))
(couple (hasband (person (name John)(age 38)) )
(wife (person (name Marry)(age 36)) ))
)
But it has an error message: Undefined function person.
How can I solve this problem?