User Tools

Site Tools


stats:proc:removeresult_task

This is an old revision of the document!


Remove Result (Task)

removeResult(ident uid, ident id, ident studentId, ident taskId) {
  assume exists //accounts/account[uid]/examiner[id];
 
  assume exists //exams/exam[id]/results/participant[studentId]/result[taskId];
    # implies the exam, account, student role and task exist by integrity
 
  remove //exams/exam[id]/results/participant[studentId]/result[taskId];
}
stats/proc/removeresult_task.1320241170.txt.gz · Last modified: 2011/11/02 14:39 by Patrick Michel