Rev | Line | |
---|
[121] | 1 | class RecurringSchedule { |
---|
| 2 | |
---|
[122] | 3 | Task task |
---|
| 4 | Period period |
---|
[121] | 5 | PlannedMaintenance plannedMaintenance |
---|
| 6 | |
---|
| 7 | Integer recurEvery |
---|
| 8 | Date startDate = new Date() |
---|
[123] | 9 | Date lastExecutedDate |
---|
| 10 | Date nextDueDate |
---|
[121] | 11 | boolean isActive = true |
---|
| 12 | |
---|
| 13 | // static hasMany = [] |
---|
| 14 | |
---|
| 15 | static belongsTo = [Task] |
---|
| 16 | |
---|
[122] | 17 | static constraints = { |
---|
| 18 | plannedMaintenance(blank:true, nullable:true) |
---|
[123] | 19 | lastExecutedDate(blank:true, nullable:true) |
---|
| 20 | nextDueDate(blank:true, nullable:true) |
---|
[122] | 21 | } |
---|
[121] | 22 | |
---|
| 23 | // String toString() { |
---|
| 24 | // "${this.name}" |
---|
| 25 | // } |
---|
| 26 | } |
---|
| 27 | |
---|
Note: See
TracBrowser
for help on using the repository browser.