To fill in my question below

If I add these:

(deftemplate artifact(declare (from-class factclasses.artifact )))
(deftemplate painting extends artifact)

I am getting

Jess reported an error in routine Defmodule.addDeftemplate.
 Message: Cannot redefine deftemplate MAIN::painting.

What is going wrong?

Hello again,

I have the Java classes painting,statue which extend the class artifact.
I need to model them in deftemplates in such a way that I could get both
of instances with one defrule:

(defrule checkAPP

"Setting a property for all instances"
(artifact (OBJECT ?art) )

=>
   (?art setDatatypeProperty_1 "OK")
   (update ?art)
)


How I can do that?

thanks in advance,
John.



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

Reply via email to