An enhanced CEP (complex event processing) system based on Cayuga. It provides two types of window restricts for reducing the outputs. Furthermore, it provides the windows parameters to customize the range and sliding methods of the windows.