@Override
    public ComplexEventChunk<StateEvent> processAndReturn(ComplexEventChunk complexEventChunk) {
        LogicalStreamPreState state = (LogicalStreamPreState) stateHolder.getState();
        try {
            if (!state.active) {
                return new ComplexEventChunk<>();
            }
            ComplexEventChunk<StateEvent> event = super.processAndReturn(complexEventChunk);

            StateEvent firstEvent = event.getFirst();
            if (firstEvent != null) {
                event = new ComplexEventChunk<>();
            }
            // Always return an empty event
            return event;
        } finally {
            stateHolder.returnState(state);
        }
    }
Construct an AbsentStreamPreStateProcessor object.

@param stateType   PATTERN or SEQUENCE
@param waitingTime the waiting time defined by 'for' keyword
modules/siddhi-core/src/main/java/io/siddhi/core/query/input/stream/state/AbsentStreamPreStateProcessor.java