Design of active rule applications: Issues and approaches