source: trunk/doc/Definitions/TaskActions.txt @ 955

Last change on this file since 955 was 131, checked in by gav, 16 years ago

Reconfigure Planned Maintenance again, now Preventative Maintenance, TaskProcedure? and MaintenanceAction?

File size: 2.1 KB
RevLine 
[63]1Action          Modification (dates have precision='second')        Task (dates have precision='$day')
2------------------------------------------------------------------------------------------------------
3
4Create      ->  recordModification("Created")                       <-  is the date created.
5
[68]6Schedule    ->  recordModification("SetTargetStartDate")            ->  set: Task.targetStartDate
[63]7
[68]8                recordModification("SetTargetCompletionDate")       ->  set: Task.targetCompletionDate
[63]9
10Start       ->  recordModification("ActualStartDate")               <-  is the date started
11
12Complete    ->  recordModification("ActualCompletionDate")          <-  is the date completed   
[77]13
14Reopen    ->  recordModification("ActualCompletionDate")          <-  is the date completed   
15                   
[63]16Delete      ->  recordModification("Deleted")                       ->  Task.isActive = false
[77]17Trash       ->  recordModification("Trashed")                       ->  Task.isActive = false
18                 
19Restore    ->  recordModification("Restore")                        ->  Task.isActive = true
[63]20               
21Approve     ->  recordModification("Approve")                       ->  Task.isApproved = true
22               
23Renege      ->  recordModification("Renege")                        ->  Task.isApproved = false
24
25AddAssignedPerson->  recordModification("AddAssignedPerson", $assignedPerson)
26
27RmAssignedPerson ->  recordModification("RmAssignedPerson", $assignedPerson)
28
29recordModification(String type) {
30    Modification.modificationType = ModificationType.findByName(type)
[68]31    Modification.date = now
[63]32    Modification.person = userName                                     
33    Modification.comment = "" 
34}
35recordModification(String type, String comment) {
36    Modification.modificationType = ModificationType.findByName(type)
[68]37    Modification.date = now
[63]38    Modification.person = userName                                     
39    Modification.comment = comment 
[131]40}                     
41
42
43Required Services:
44TaskCopy
45TaskGenerateSubTask                                     
Note: See TracBrowser for help on using the repository browser.