relations between rules applications and events