User Tools

Site Tools


stats:proc:changeresult_task

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

stats:proc:changeresult_task [2012/05/22 09:55]
Patrick Michel
stats:proc:changeresult_task [2013/07/10 12:34]
Line 1: Line 1:
-====== Change Result (Task) ====== 
- 
-<code xcend> 
-changeResult(ident uid, ident id, ident studentId, ident taskId, double points) { 
-  assume exists //​accounts/​account[uid]/​examiner[id];​ 
-  
-  assume exists //​exams/​exam[id]/​results/​participant[studentId];​ 
-  assume exists //​exams/​exam[id]/​tasks/​task[taskId];​ 
-  
-  assume points >= 0 && points <= //​exams/​exam[id]/​tasks/​task[taskId]/​maxPoints;​ 
- 
-  assume exists //​exams/​exam[id]/​results/​participant[studentId]/​result[taskId];​ 
-  
-  update //​exams/​exam[id]/​results/​participant[studentId]/​result[taskId]/​points points; 
-} 
-</​code>​ 
  
stats/proc/changeresult_task.txt ยท Last modified: 2013/07/10 12:34 (external edit)