User Tools

Site Tools


This is an old revision of the document!

Create Group

createGroup(ident id, ident groupId, string day, string time, string location, integer maxSize) {
  assume exists //exercises/exercise[id];
  assume not exists //exercises/exercise[id]/groups/group[groupId];
  assume maxSize >= 0;
  assume day = "Monday" || day = "Tuesday" || ...;
  insert //exercises/exercise[id]/groups <group id=[groupId] day=[day] time=[time] location=[location] maxSize=[maxSize] />;
stats/proc/creategroup.1317150025.txt.gz · Last modified: 2011/09/27 21:00 by Patrick Michel