Thanks to Guy Sharon I've learned about cool Andorid application developed by Microsoft Israel called On{X}. It enables to specify and use an event- condition-action recipes (the name sounds tastier than rules).
Ring on the third call from the same person when my phone is silent
Set mode to silent between 11:00PM and 7:00am after the phone has not been unlocked for 2 hours
Text my wife "my phone is dying" when the battery goes below 15%
All of these look to me as event patterns. Looking at the On{X} Blog I learned that new features include - dynamic regions, noise detection and more. There is a collection of recipes and one can program more using JavaScript
A very interesting event processing application -- I may buy smartphone one of these days :-)