@Override
    public void partitionCreated() {
        // Start automatically only if it is the start state and 'for' time is defined
        // Otherwise, scheduler will be started in the addState method
        LogicalStreamPreState state = (LogicalStreamPreState) stateHolder.getState();

        try {
            if (!state.isStarted()) {
                state.started();
                if (isStartState && waitingTime != -1 && state.active) {
                    state.lastScheduledTime = this.siddhiQueryContext.getSiddhiAppContext()
                            .getTimestampGenerator().currentTime() + waitingTime;
                    this.scheduler.notifyAt(state.lastScheduledTime);
                }
            }
        } 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