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 [2011/10/12 14:47]
Patrick Michel created
stats:proc:changeresult_task [2013/07/10 12:34]
Line 1: Line 1:
-====== Change Result (Task) ====== 
- 
-<code xcend> 
-changeResult(string uid, string id, string studentId, string 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)