protected void addState(StateEvent stateEvent, StreamPreState preState) {
        LogicalStreamPreState state = (LogicalStreamPreState) preState;
        if (!state.active) {
            // 'every' keyword is not used and already a pattern is processed
            return;
        }
        lock.lock();
        try {
            if (stateType == StateInputStream.Type.SEQUENCE) {
                state.getNewAndEveryStateEventList().clear();
                state.getNewAndEveryStateEventList().add(stateEvent);
            } else {
                state.getNewAndEveryStateEventList().add(stateEvent);
            }
            // If this is the first processor, nothing to receive from previous patterns
            if (!isStartState) {
                // Start the scheduler
                state.lastScheduledTime = stateEvent.getTimestamp() + waitingTime;
                scheduler.notifyAt(state.lastScheduledTime);
            }
        } finally {
            lock.unlock();
        }
    }
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