This brings up a question. Say you have a Java system that produces event objects (lots of them). You want to match a pattern wherein the event object (has a slot whose value ) is xyz. You definstance (within the Java program) (after a defclass for the event class) the event class for each event that occurs in real-time. IF the Java system produces lots of those events (event instances that you then create in Jess working memory) and the pattern is only matched once in a while, do all those definstances clutter up Jess's working memory waiting around for the pattern to match? When does memory get cleared of those events? If you do a clear at any time then all is gone (right?), even those events that may have matched the pattern in the future.
-----Original Message----- From: [EMAIL PROTECTED] Sent: Jun 29, 2004 1:21 PM To: [EMAIL PROTECTED] Subject: Re: JESS: Execute rules with an Iterator I think Sergio Martmn Ballesteros wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hello: > > I have those Iterators: > > Iterator e = rete.listDefrules(); > Iterator f = rete.listActivations(); > > Could I use those iterators to execute any rule that I want? Does exist any > way to do this? No, it doesn't work like that. It's up to Jess to find a list of facts that satisfy a rule, then fire the rule with those facts. You can write a deffunction, and call it; or you can use auto-focus rules in a separate module, which behave a lot like a subroutine call (as described in the manual). But there's no way to say "Here's a set of facts -- fire this rule on these facts, now." --------------------------------------------------------- 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] -------------------------------------------------------------------- Michael Don Knapik System Analyst/Architect Technology Solutions Spherion Corporation 4343 N Scottsdale Rd, Suite 365 Scottsdale, Arizona 85251 TEL: 480.776.3300 x136 FAX: 480.776.3301 CELL: 602-402-8378 www.spherion.com [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] --------------------------------------------------------------------
