This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
stats:proc:removeresult_task [2011/09/29 19:25] Patrick Michel |
stats:proc:removeresult_task [2013/07/10 12:34] (current) |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| <code xcend> | <code xcend> | ||
| removeResult(ident uid, ident id, ident studentId, ident taskId) { | removeResult(ident uid, ident id, ident studentId, ident taskId) { | ||
| - | assume exists //accounts/account[uid]/examiner[id]; | + | assume exists /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 | + | assume exists /exam[id]/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 /exam[id]/participant[studentId]/result[taskId]; |
| - | } # roles: examiner[id] | + | } |
| </code> | </code> | ||