Hi Ernest! Thanks for your answer. I had two rules with the same name. The second one would not fire before the first one had fired (it would go too far to describe the reasons for that) Therefore I assumed that the rules would not fire at all. Instead, the first rule was deleted (as u say) and the second one never fired. Nevertheless, it would be nice if I get a warning when rules are silently deleted. :) Sometimes I just use copy&paste to create new rules and there is the danger that I do not remember the duplicate rule name. I assume that others may have had similar problems. Of course, it is not really vital to get a warning or error. However, it could already have saved some time and may possibly do it in the future. Regards, Norman Gyhra -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Freitag, 16. Februar 2001 16:55 To: Gyhra, Norman (Student Assistant) Subject: Re: Handling of duplicate rule names Hi Norman, The behaviour is supposed to be as documented in the last paragraph of section 2.8.1 of the manual: "Rules are uniquely identified by their name. If a rule named my-rule exists, and you define another rule named my-rule, the first version is deleted and will not fire again, even if it was activated at the time the new version was defined." If you've got a case where the behaviour is otherwise, you've found a bug. Please try to produce the simplest input file that shows the problem -- the simpler the better -- and send it along. Thanks! I think Gyhra, Norman (Student Assistant) wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hi Ernest ! > > Would it be possible to improve the handling > of duplicate rule names ? > > At the moment the rules don_t fire at all which > has already resulted in some longer debugging > sessions.... > > I would at least expect an error message or something > like that. > > > Regards, > Norman Gyhra > --------------------------------------------------------- Ernest Friedman-Hill Distributed Systems Research Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 Org. 8920, MS 9012 [EMAIL PROTECTED] PO Box 969 http://herzberg.ca.sandia.gov Livermore, CA 94550 --------------------------------------------------------------------- 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: RE: Handling of duplicate rule names
Gyhra, Norman (Student Assistant) Fri, 16 Feb 2001 07:49:43 -0800
