The autofocus rule property allows an automatic focus command to be executed whenever a rule becomes activated. If the autofocus property for a rule is TRUE, then a focus command on the module in which the rule is defined is automatically executed whenever the rule is activated. If the autofocus property for a rule is FALSE, then no action is taken when the rule is activated. If unspecified, the autofocus value for a rule defaults to FALSE.
Example
(defrule VIOLATIONS::bad-age (declare (auto-focus TRUE)) (person (name ?name) (age ?x&:(< ?x 0))) => (printout t ?name " has a bad age value." crlf))