Addressing the reactiveness problem in sensor networks using rich task representation