User Tools

Site Tools


stats:proc:addparticipant

Differences

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

Link to this comparison view

stats:proc:addparticipant [2011/09/29 00:26]
Patrick Michel
stats:proc:addparticipant [2013/07/10 12:34]
Line 1: Line 1:
-====== Add Participant ====== 
- 
-<code xcend> 
-addParticipant(ident id, ident studentId) { 
-  assume exists //​exams/​exam[id];​ # implicitly true in OO implementations 
-  assume exists //​accounts/​account/​student[studentId];​ 
-  ​ 
-  assume not exists //​exams/​exam[id]/​results/​participant[studentId];​ 
-  ​ 
-  insert //​exams/​exam[id]/​results/​participant[studentId];​ 
-} # roles: examiner[id] 
-</​code>​ 
- 
  
stats/proc/addparticipant.txt · Last modified: 2013/07/10 12:34 (external edit)