I think El German wrote: > Hi, > > I was having a look at the JESS code and I realised there was a mistake. > I had written a simple rule that printed a message to see if it was > activated, but it had the same name than a more complex rule that was > defined later. I've changed the name of the simple rule and it works, so I > suppose that the mistake is in the complex rules. Activation works!!! > > Thank you very much > > Cherman >
Note an important terminology issue: a rule is "activated" when its left-hand-side is matched by a set of facts. Fact-matching happens during calls to "reset," "assert," and "modify". It "fires" when its right-hand-side is actually executed. Rules are only executed when "run" is called. --------------------------------------------------------- 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] --------------------------------------------------------------------
