User Tools

Site Tools


stats:proc:createtask

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
stats:proc:createtask [2011/09/29 19:22] – Patrick Michelstats:proc:createtask [2013/07/10 12:42] (current) – external edit 127.0.0.1
Line 3: Line 3:
 <code xcend> <code xcend>
 createTask(ident uid, ident id, ident taskId, double maxPoints) { createTask(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]; # implicitly true in OO implementations +  assume exists /exam[id]; # implicitly true in OO implementations 
-  assume not exists //exams/exam[id]/tasks/task[taskId];+  assume not exists /exam[id]/task[taskId];
  
   assume maxPoints >= 0;   assume maxPoints >= 0;
      
-  insert //exams/exam[id]/tasks <task id=[taskId] maxPoints=[maxPoints] />;+  insert /exam[id] <task id=[taskId] maxPoints=[maxPoints] />;
 } }
 </code> </code>
  
stats/proc/createtask.1317316959.txt.gz · Last modified: by Patrick Michel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki