| 1 | Action Modification (dates have precision='second') Task (dates have precision='$day') |
|---|
| 2 | ------------------------------------------------------------------------------------------------------ |
|---|
| 3 | |
|---|
| 4 | Create -> recordModification("Created") <- is the date created. |
|---|
| 5 | |
|---|
| 6 | Schedule -> recordModification("TargetStartDate") -> set: Task.targetStartDate |
|---|
| 7 | |
|---|
| 8 | recordModification("TargetCompletionDate") -> set: Task.targetCompletionDate |
|---|
| 9 | |
|---|
| 10 | Start -> recordModification("ActualStartDate") <- is the date started |
|---|
| 11 | |
|---|
| 12 | Complete -> recordModification("ActualCompletionDate") <- is the date completed |
|---|
| 13 | |
|---|
| 14 | Delete -> recordModification("Deleted") -> Task.isActive = false |
|---|
| 15 | |
|---|
| 16 | UnDelete -> recordModification("UnDeleted") -> Task.isActive = true |
|---|
| 17 | |
|---|
| 18 | Approve -> recordModification("Approve") -> Task.isApproved = true |
|---|
| 19 | |
|---|
| 20 | Renege -> recordModification("Renege") -> Task.isApproved = false |
|---|
| 21 | |
|---|
| 22 | AddAssignedPerson-> recordModification("AddAssignedPerson", $assignedPerson) |
|---|
| 23 | |
|---|
| 24 | RmAssignedPerson -> recordModification("RmAssignedPerson", $assignedPerson) |
|---|
| 25 | |
|---|
| 26 | recordModification(String type) { |
|---|
| 27 | Modification.modificationType = ModificationType.findByName(type) |
|---|
| 28 | Modification.dateTime = now |
|---|
| 29 | Modification.person = userName |
|---|
| 30 | Modification.comment = "" |
|---|
| 31 | } |
|---|
| 32 | recordModification(String type, String comment) { |
|---|
| 33 | Modification.modificationType = ModificationType.findByName(type) |
|---|
| 34 | Modification.dateTime = now |
|---|
| 35 | Modification.person = userName |
|---|
| 36 | Modification.comment = comment |
|---|
| 37 | } |
|---|