Re: JESS: Test on a list from a JavaBean

2006-10-24 Thread Skeptic 2000


Oops,  I was about to reply saying "forget it, it's from the Java's API".

In fact, now that I understand that I can call any java method from the 
matching facts, all my problems should be solved.


Thanks again,

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 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,  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" <[EMAIL PROTECTED]>

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 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 ?


-
Ernest Friedman-Hill
Advanced Software Research  Phone: (925) 294-2154
Sandia National LabsFAX:   (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.com


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]




_
Voyez vos amis en faisant un appel vidèo dans Windows Live Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=fr-ca



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]




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" <[EMAIL PROTECTED]>

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 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 ?


-
Ernest Friedman-Hill
Advanced Software Research  Phone: (925) 294-2154
Sandia National LabsFAX:   (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.com


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]




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 Oct 2006 15:13:30 -0400

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 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 ?


-
Ernest Friedman-Hill
Advanced Software Research  Phone: (925) 294-2154
Sandia National LabsFAX:   (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.com


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]




_
Découvrez Live Search de votre PC ou de votre appareil mobile dès 
aujourd’hui. http://www.live.com/?mkt=fr-ca



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]




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 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 ?


-
Ernest Friedman-Hill
Advanced Software Research  Phone: (925) 294-2154
Sandia National LabsFAX:   (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.com


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]




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

_
Essayez la nouvelle génération de recherche avec Live Search. 
http://www.live.com/?mkt=fr-ca



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]