Hey thanks, Ernest. I think that I was laboring under the misconception that not all of Jess's API was exposed via the Jess language. Just so I understand: All Jess API methods are accessible via Jess script as you show below?
-JM -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 5:56 AM To: [EMAIL PROTECTED] Subject: Re: JESS: Obtaining a fact-id from an External Address I think Jason Morris wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hello All (and most likely EJF) > > GIVEN: A java.util.Iterator of <External Address: jess.Fact> objects > containing the results of a defquery asking for all shadow facts of a > certain type in working memory. > > PROBLEM: Find the corresponding fact-ids of each <External Address: > jess.Fact> via Jess script (that is, not using the API and getFactId(). > Page 311 of JIA says that there is no Jess equivalent of > findFactByFact(Fact), which is apparently what I'd normally try. Why not just (bind ?f (?iterator next)) (bind ?id (?f getFactId)) --------------------------------------------------------- Ernest Friedman-Hill Science and Engineering PSEs Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov -------------------------------------------------------------------- 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] -------------------------------------------------------------------- -------------------------------------------------------------------- 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] --------------------------------------------------------------------