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.1317317150.txt.gz · Last modified: 2011/09/29 19:25 by Patrick Michel