@Override
        public void restore(Map<String, Object> state) {
            super.restore(state);
            active = (Boolean) state.get("IsActive");
            lastScheduledTime = (Long) state.get("LastScheduledTime");
        }
This flag turns to false after processing the first event if 'every' is not used.
This is used to process only one pattern if 'every' is not used.
modules/siddhi-core/src/main/java/io/siddhi/core/query/input/stream/state/AbsentStreamPreStateProcessor.java