This shows you the differences between two versions of the page.
stats:proc:changeattributes_group [2011/09/29 11:40] Patrick Michel |
stats:proc:changeattributes_group [2013/07/10 12:33] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Change Attributes (Group) ====== | ||
- | <code xcend> | ||
- | changeAttributes(ident id, ident groupId, string day, string time, string location, integer maxSize) { | ||
- | assume exists //exercises/exercise[id]/groups/group[groupId]; # implicitly true in OO implementations | ||
- | |||
- | assume count(groupId, //exercises/exercise[id]/students/student/group) <= maxSize; | ||
- | |||
- | update //exercises/exercise[id]/groups/group[groupId]/day day; | ||
- | update //exercises/exercise[id]/groups/group[groupId]/time time; | ||
- | update //exercises/exercise[id]/groups/group[groupId]/location location; | ||
- | update //exercises/exercise[id]/groups/group[groupId]/maxSize maxSize; | ||
- | } # roles: assistant[id] | ||
- | </code> |