* @see org.olat.core.gui.control.DefaultController#event(org.olat.core.gui.UserRequest, org.olat.core.gui.control.Controller, org.olat.core.gui.control.Event)
*/
public void event(UserRequest urequest, Controller source, Event event) {
if (source == displayController) {
if (event instanceof IQSubmittedEvent) {
IQSubmittedEvent se = (IQSubmittedEvent) event;
AssessmentManager am = userCourseEnv.getCourseEnvironment().getAssessmentManager();
// Save results in case of test
if (type.equals(AssessmentInstance.QMD_ENTRY_TYPE_ASSESS)) {
// update scoring overview for the user in the current course
Float score = new Float(se.getScore());
Boolean passed = new Boolean(se.isPassed());
ScoreEvaluation sceval = new ScoreEvaluation(score, passed, new Long(se.getAssessmentID()));
AssessableCourseNode acn = (AssessableCourseNode)courseNode; // assessment nodes are assesable
boolean incrementUserAttempts = true;
acn.updateUserScoreEvaluation(sceval, userCourseEnv, urequest.getIdentity(), incrementUserAttempts);
//userCourseEnv.getScoreAccounting().scoreInfoChanged(acn, sceval);
exposeUserTestDataToVC(urequest);