protected void process(StateEvent stateEvent) {
        StreamPreState state = stateHolder.getState();
        try {
            state.currentStateEventChunk.add(stateEvent);
            state.currentStateEventChunk.reset();
            state.stateChanged = false;
            nextProcessor.process(state.currentStateEventChunk);
            state.currentStateEventChunk.reset();
        } finally {
            stateHolder.returnState(state);
        }
    }
Process the handed StreamEvent

@param complexEventChunk event chunk to be processed
modules/siddhi-core/src/main/java/io/siddhi/core/query/input/stream/state/StreamPreStateProcessor.java