Hi Wolfgang,
Thank you for all of your help. I finally got the rule to work as I wanted:
(defrule model-completion-example
(BooleanPropertyImpl (OBJECT ?property))
(PageImpl (OBJECT ?container))
(test ((?container getChildren) contains ?property))
(test (eq (?property
As the message says: children is some Java thing, but not a Jess list. (A
Java array would map to a Jess list.)
Use the Java method for testing membership:
( test ( (?container getChildren) contains ?property) )
-W
On 8 March 2011 03:16, Jevon Wright je...@jevon.org wrote:
Hi all,
Thanks
Hi all,
Thanks for your suggestions Ernest and Wolfgang, they definitely
helped. I am now using the following rule:
(defrule check-printout3
(BooleanPropertyImpl (OBJECT ?property))
(PageImpl (OBJECT ?container))
(test
(member$ ?property (?container getChildren))
)
=