Changeset 434 for trunk/grails-app
- Timestamp:
- Mar 7, 2010, 5:03:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/TaskRecurringScheduleService.groovy
r243 r434 3 3 boolean transactional = false 4 4 5 // Can hold state since the service is a singleton. 6 boolean baseDataWarnLogged = false 7 8 def taskService 5 9 def dateUtilService 6 def taskService10 def appConfigService 7 11 8 12 /** … … 13 17 def taskRecurringScheduleList = TaskRecurringSchedule.findAllByEnabled(true) 14 18 19 // Prevent errors if base data has not yet been created. 20 if(!appConfigService.exists("baseDataCreated")) { 21 if(!baseDataWarnLogged) { 22 log.warn "Base data has not been created, can't generate all." 23 baseDataWarnLogged = true 24 } 25 return 26 } 27 15 28 taskRecurringScheduleList.each() { 16 29 17 if ( 30 if (dateUtilService.tomorrow > it.nextGenerationDate) { 18 31 def p = [:] 19 32
Note: See TracChangeset
for help on using the changeset viewer.