// process workflow
if (qticomp == null || qticomp.getAssessmentInstance() == null) { throw new RuntimeException("AssessmentInstance not valid."); }
AssessmentInstance ai = qticomp.getAssessmentInstance();
Navigator navig = ai.getNavigator();
if (wfCommand.equals("sitse")) { // submitItemorSection
navig.submitItems(iqm.getItemsInput(ureq)); //
if (ai.isClosed()) { // do all the finishing stuff
event(ureq, source, new Event(QTIConstants.QTI_WF_SUBMIT));
return;
}
} else if (wfCommand.equals("sflash")) { // submit flash answer