@Override
    public void process(ComplexEventChunk complexEventChunk) {
        complexEventChunk.reset();
        while (complexEventChunk.hasNext()) {
            ComplexEvent complexEvent = complexEventChunk.next();
            Object result = conditionExecutor.execute(complexEvent);
            if (result == null || !(Boolean) result) {
                complexEventChunk.remove();
            }
        }
        if (complexEventChunk.getFirst() != null) {
            this.next.process(complexEventChunk);
        }
    }
Implementation of {@link Processor} which handles Filter expressions in Siddhi.
modules/siddhi-core/src/main/java/io/siddhi/core/query/processor/filter/FilterProcessor.java