Dear Dr.Ernest Thanks alot . I will study the manual and given references.
regards, Shahab Ernest Friedman-Hill <[EMAIL PROTECTED]> wrote: On Sunday 06 May 2007 11:38:54 am shahab wrote: > Hi, > > I have used JessListener to identify the name of the fired rule. But I > also need to identify which rules can be fired concurrently ( at the same > time )? since the listener gets the subscribed events sequentially, is > there any other fields to check the real execution order? You'll get RU.DEFRULE_FIRED events in the exact order in which the rules fire. > Also, I wonder how Jess selects the first rule to fire when there is more > than one applicable rule ? The ordering of rule firing is is discussed in the manual; see http://herzberg.ca.sandia.gov/jess/docs/70/rules.html#salience . If neither salience nor conflict resolution distinguishes between two rules, then the order in which they fire is undefined (*not* random, but simply not specified.) This indeterminate ordering is an implementation detail and the precise ordering may change between Jess releases. If you need to control rule ordering yourself, you can do so by implementing your own conflict resolution strategy, as described in the Wiki, here: http://herzberg.ca.sandia.gov/jesswiki/view?ConflictResolutionStrategyExample --------------------------------------------------------- Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://www.jessrules.com -------------------------------------------------------------------- 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]
