This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
stats:proc:removeresult_task [2011/09/27 20:57] Patrick Michel created |
stats:proc:removeresult_task [2011/11/02 14:39] Patrick Michel |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Remove Result ====== | + | ====== Remove Result (Task) ====== |
<code xcend> | <code xcend> | ||
- | removeResult(ident id, ident studentId, ident taskId) { | + | removeResult(ident uid, ident id, ident studentId, ident taskId) { |
- | assume exists //exams/exam[id]/results/participant[studentId]/result[taskId]; # implies the exam, account, student role and task exist by integrity | + | 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]; | remove //exams/exam[id]/results/participant[studentId]/result[taskId]; | ||
} | } | ||
</code> | </code> |