I think =?iso-8859-1?B?U2VyZ2lvIE1hcnTtbiBCYWxsZXN0ZXJvcw==?= 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] --------------------------------------------------------------------
