stats:proc:createtask
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| stats:proc:createtask [2011/09/29 00:19] – Patrick Michel | stats:proc:createtask [2013/07/10 12:42] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| <code xcend> | <code xcend> | ||
| - | createTask(ident id, ident taskId, double maxPoints) { | + | createTask(ident uid, ident id, ident taskId, double maxPoints) { |
| - | assume exists //exams/exam[id]; # implicitly true in OO implementations | + | assume exists /account[uid]/examiner[id]; |
| - | assume not exists | + | |
| + | assume exists | ||
| + | assume not exists / | ||
| assume maxPoints >= 0; | assume maxPoints >= 0; | ||
| | | ||
| - | insert | + | insert /exam[id] <task id=[taskId] maxPoints=[maxPoints] />; |
| - | } # roles: examiner[id] | + | } |
| </ | </ | ||
stats/proc/createtask.1317248340.txt.gz · Last modified: by Patrick Michel
