Changeset 114 for trunk/grails-app/conf
- Timestamp:
- Apr 14, 2009, 10:03:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrap.groovy
r102 r114 211 211 //Task 212 212 def taskInstance 213 def subTaskInstance214 213 215 214 taskInstance = new Task(taskGroup:TaskGroup.findByName("Engineering Activites"), … … 222 221 BootStrapSaveAndTest(taskInstance) 223 222 224 subTaskInstance = new Task(taskGroup:TaskGroup.findByName("Engineering Activites"), 225 taskStatus:TaskStatus.findByName("Not Started"), 226 taskPriority:TaskPriority.get(2), 227 taskType:TaskType.get(1), 228 leadPerson:Person.get(5), 229 description:"Some follow-up work", 230 comment:"Some help required") 231 BootStrapSaveAndTest(subTaskInstance) 232 233 //Add task 2 as a subTask of task 1. 234 taskInstance.addToSubTasks(Task.get(2)) 235 subTaskInstance.parentTask = Task.get(1) 236 237 subTaskInstance = new Task(taskGroup:TaskGroup.findByName("Engineering Activites"), 223 taskInstance = new Task(taskGroup:TaskGroup.findByName("Engineering Activites"), 224 taskStatus:TaskStatus.findByName("Not Started"), 225 taskPriority:TaskPriority.get(2), 226 taskType:TaskType.get(1), 227 leadPerson:Person.get(5), 228 description:"Some follow-up work", 229 comment:"Some help required", 230 parentTask: Task.get(1)) 231 BootStrapSaveAndTest(taskInstance) 232 233 taskInstance = new Task(taskGroup:TaskGroup.findByName("Engineering Activites"), 234 taskStatus:TaskStatus.findByName("Not Started"), 235 taskPriority:TaskPriority.get(2), 236 taskType:TaskType.get(1), 237 leadPerson:Person.get(5), 238 description:"A Sub Task can be created by setting the Parent Task value", 239 comment:"Some help required", 240 parentTask: Task.get(1)) 241 BootStrapSaveAndTest(taskInstance) 242 243 taskInstance = new Task(taskGroup:TaskGroup.findByName("Engineering Activites"), 238 244 taskStatus:TaskStatus.findByName("Not Started"), 239 245 taskPriority:TaskPriority.get(2), … … 241 247 leadPerson:Person.get(4), 242 248 description:"Replace sensor at next opportunity.", 243 comment:"Nothing else has worked.") 244 BootStrapSaveAndTest(subTaskInstance) 245 246 //Add task 3 as a subTask of task 1. 247 taskInstance.addToSubTasks(Task.get(3)) 248 subTaskInstance.parentTask = Task.get(1) 249 comment:"Nothing else has worked.", 250 parentTask: Task.get(1)) 251 BootStrapSaveAndTest(taskInstance) 249 252 250 253 taskInstance = new Task(taskGroup:TaskGroup.findByName("Production Activites"),
Note: See TracChangeset
for help on using the changeset viewer.