Complex event processing (CEP) systems represent a mainstream approach for processing streams of data. Specifically, they target the definition and detection of high-level situations of interest, or composite events, starting from streams of primitive events collected from the external environment. In CEP, composite events are specified through user-defined rules, which express how to select, manipulate, and combine primitive events. Thanks to the capability of handling large volumes of information to isolate situations of interest, CEP represents a perfect solution for the management and online analysis of data in pervasive systems. Researchers and practitioners working on CEP focused on the creation of simple, yet expressive languages for...