Processing flows of information: from data stream to complex event processing