source: branches/features/taskProcedureRework/doc/Definitions/TaskActions.txt @ 804

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

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

File size: 2.1 KB
Line 
1Action          Modification (dates have precision='second')        Task (dates have precision='$day')
2------------------------------------------------------------------------------------------------------
3
4Create      ->  recordModification("Created")                       <-  is the date created.
5
6Schedule    ->  recordModification("SetTargetStartDate")            ->  set: Task.targetStartDate
7
8                recordModification("SetTargetCompletionDate")       ->  set: Task.targetCompletionDate
9
10Start       ->  recordModification("ActualStartDate")               <-  is the date started
11
12Complete    ->  recordModification("ActualCompletionDate")          <-  is the date completed   
13
14Reopen    ->  recordModification("ActualCompletionDate")          <-  is the date completed   
15                   
16Delete      ->  recordModification("Deleted")                       ->  Task.isActive = false
17Trash       ->  recordModification("Trashed")                       ->  Task.isActive = false
18                 
19Restore    ->  recordModification("Restore")                        ->  Task.isActive = true
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)
31    Modification.date = now
32    Modification.person = userName                                     
33    Modification.comment = "" 
34}
35recordModification(String type, String comment) {
36    Modification.modificationType = ModificationType.findByName(type)
37    Modification.date = now
38    Modification.person = userName                                     
39    Modification.comment = comment 
40}                     
41
42
43Required Services:
44TaskCopy
45TaskGenerateSubTask                                     
Note: See TracBrowser for help on using the repository browser.