Re: JESS: Test on a list from a JavaBean

2006-10-24 Thread Skeptic 2000
PROTECTED]> Reply-To: jess-users@sandia.gov To: jess-users@sandia.gov Subject: Re: JESS: Test on a list from a JavaBean Date: Tue, 24 Oct 2006 22:09:34 -0400 On Oct 24, 2006, at 8:14 PM, Skeptic 2000 wrote: Thanks, I missed the contains, it's not in the Jess functions list, wher

Re: JESS: Test on a list from a JavaBean

2006-10-24 Thread Ernest Friedman-Hill
On Oct 24, 2006, at 8:14 PM, Skeptic 2000 wrote: Thanks, I missed the contains, it's not in the Jess functions list, where it comes from ? It's a method in the java.util.Collections interface, yes? We're calling it on ?theList, which is a java.util.List. From: "Ernest Friedman-Hill"

Re: JESS: Test on a list from a JavaBean

2006-10-24 Thread Skeptic 2000
Thanks, I missed the contains, it's not in the Jess functions list, where it comes from ? JFL From: "Ernest Friedman-Hill" <[EMAIL PROTECTED]> Reply-To: jess-users@sandia.gov To: jess-users@sandia.gov Subject: Re: JESS: Test on a list from a JavaBean Date: Tue, 24 Oc

Re: JESS: Test on a list from a JavaBean

2006-10-24 Thread Ernest Friedman-Hill
Something like this? (defrule theRule (theFact (theProperty ?theList&:(?theList contains "xyz"))) => ... On Oct 24, 2006, at 2:15 PM, Skeptic 2000 wrote: Hi, In my rules, I need to tests some shadows fact which have as one of their properties a List. For example, let's say it's

JESS: Test on a list from a JavaBean

2006-10-24 Thread Skeptic 2000
Hi, In my rules, I need to tests some shadows fact which have as one of their properties a List. For example, let's say it's a List of String and I my test is to check that the string "xyz" is part of the list. What would be the most proper way to do this ? Thanks, JFL _