Changeset 781 for branches/features
- Timestamp:
- Feb 4, 2011, 6:45:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/features/taskProcedureRework/grails-app/services/CreateDataService.groovy
r772 r781 3 3 /** 4 4 * Provides a data service to create base and demo data. 5 * Beware that most, if not all, basedata is referenced by "Id" throughout the program.5 * Beware that most, if not all, BASE data is referenced by "Id" throughout the program. 6 6 * This allows changing the text of the 'name' property to something of the same meaning. 7 7 * But be sure to maintain the correct Id during creation, indicated by #1, #2 etc. 8 * Task.list()[0] is used to allow integration testing with DEMO data, where Id's may change due to create-delete. 8 9 */ 9 10 class CreateDataService { … … 1100 1101 def person = Person.get(3) 1101 1102 1102 taskInstance = Task. get(5)1103 taskInstance = Task.list()[4] 1103 1104 taskProcedureInstance = new TaskProcedure(linkedTask: taskInstance, 1104 1105 createdBy: person, … … 1107 1108 taskProcedureInstance.addToTasks(taskInstance) 1108 1109 1109 taskInstance = Task. get(7)1110 taskInstance = Task.list()[6] 1110 1111 taskProcedureInstance = new TaskProcedure(linkedTask: taskInstance, 1111 1112 createdBy: person,
Note: See TracChangeset
for help on using the changeset viewer.