logger.info("Load the feedback event from model" + modelpath);
try {
//read the feedback event model and convert it to a base feedback
BaseFeedback feedback = PluginManager.getFeedbackDataStores()
.read(modelpath);
//add the feedback object to the list
feedbackEventsList.add(feedback);
} catch (RpException e) {
logger.warn("Error in reading the feedback event", e);
}
}
} else {
logger.warn("No feedback events in the system");
readyForFeedbackCalculation = true;
}
Thread t = new Thread(new Runnable() {
public void run() {
//wait till the plugin is mark as ready for feedback re-calculation process
while (!readyForFeedbackCalculation);
//if there are feedback events accept it to the system
logger.info("There are " + feedbackEventsList.size() +
" feedback events");
for (int i = 0; i < feedbackEventsList.size(); i++) {
//get the event object
BaseFeedback advice = (BaseFeedback) feedbackEventsList.get(i);
//accept the feedback event
acceptFeedback(advice);
}
}