User Tools

Site Tools


stats:proc:changeattributes_task

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
stats:proc:changeattributes_task [2011/09/29 19:23]
Patrick Michel
stats:proc:changeattributes_task [2013/07/10 12:34] (current)
Line 3: Line 3:
 <code xcend> <code xcend>
 changeAttributes(ident uid, ident id, ident taskId, double maxPoints) { changeAttributes(ident uid, ident id, ident taskId, double maxPoints) {
-  assume exists ​//accounts/​account[uid]/​examiner[id];​+  assume exists /​account[uid]/​examiner[id];​
  
-  assume exists ​//exams/exam[id]/tasks/​task[taskId];​ # implies the existence of the exam+  assume exists /​exam[id]/​task[taskId];​ # implies the existence of the exam
   ​   ​
   assume maxPoints >= 0;   assume maxPoints >= 0;
-  assume ​//exams/exam[id]/results/​participant[x]/​result[taskId]/​points <= maxPoints;+  assume /​exam[id]/​participant[x]/​result[taskId]/​points <= maxPoints;
   ​   ​
-  update ​//exams/exam[id]/tasks/​task[taskId]/​maxPoints maxPoints;+  update /​exam[id]/​task[taskId]/​maxPoints maxPoints;
 } }
 </​code>​ </​code>​
  
stats/proc/changeattributes_task.1317317005.txt.gz ยท Last modified: 2011/09/29 19:23 by Patrick Michel