Re: JESS: Defrule bind get-member crashes: Bad slot value at token '('.

2011-03-11 Thread Jevon Wright
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

Re: JESS: Defrule bind get-member crashes: Bad slot value at token '('.

2011-03-08 Thread Wolfgang Laun
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

Re: JESS: Defrule bind get-member crashes: Bad slot value at token '('.

2011-03-07 Thread Jevon Wright
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)) ) =