Index: trunk/doc/Definitions/EntryTerms.txt
===================================================================
--- trunk/doc/Definitions/EntryTerms.txt	(revision 63)
+++ trunk/doc/Definitions/EntryTerms.txt	(revision 63)
@@ -0,0 +1,42 @@
+Entry terms and definitions.
+
+Entry class attributes:
+
+    comment
+                - Default = required so nothing.
+                - Larger text area.
+
+    enteredBy
+                - Default = current person.
+                - Cannot be changed.
+                - Of Class Person.
+
+    durationHour
+                - Default = 0.
+                - Integer representing hours spent on this entry.
+
+    durationMinute
+                - Default = 0 
+                - Integer representing minutes spent on this entry.
+
+    dateDone
+                - Default = now.
+                - Precision = day.
+                - Can be changed.
+
+    dateEntered
+                - Default = now.
+                - Precision = second.
+                - Cannot be changed.
+
+    task        
+                - The task this entry belongs to.
+                - Of Class Task.
+
+    entryType
+                - Default = one of "Work Done", "Fault", "Production", "Work Request".
+                - Default depends on where the entry comes from.
+                - Of Class EntryType.
+
+#Required actions.
+Return a list of all entries for a Task.
Index: trunk/doc/Definitions/TaskActions.txt
===================================================================
--- trunk/doc/Definitions/TaskActions.txt	(revision 63)
+++ trunk/doc/Definitions/TaskActions.txt	(revision 63)
@@ -0,0 +1,37 @@
+Action          Modification (dates have precision='second')        Task (dates have precision='$day')
+------------------------------------------------------------------------------------------------------
+
+Create      ->  recordModification("Created")                       <-  is the date created.
+
+Schedule    ->  recordModification("TargetStartDate")               ->  set: Task.targetStartDate
+
+                recordModification("TargetCompletionDate")          ->  set: Task.targetCompletionDate
+
+Start       ->  recordModification("ActualStartDate")               <-  is the date started
+
+Complete    ->  recordModification("ActualCompletionDate")          <-  is the date completed   
+                
+Delete      ->  recordModification("Deleted")                       ->  Task.isActive = false
+                
+UnDelete    ->  recordModification("UnDeleted")                     ->  Task.isActive = true
+                
+Approve     ->  recordModification("Approve")                       ->  Task.isApproved = true
+                
+Renege      ->  recordModification("Renege")                        ->  Task.isApproved = false
+
+AddAssignedPerson->  recordModification("AddAssignedPerson", $assignedPerson)
+
+RmAssignedPerson ->  recordModification("RmAssignedPerson", $assignedPerson)
+
+recordModification(String type) {
+    Modification.modificationType = ModificationType.findByName(type)
+    Modification.dateTime = now
+    Modification.person = userName                                     
+    Modification.comment = ""  
+}
+recordModification(String type, String comment) {
+    Modification.modificationType = ModificationType.findByName(type)
+    Modification.dateTime = now
+    Modification.person = userName                                      
+    Modification.comment = comment  
+}                                                           
Index: trunk/doc/Definitions/TaskTerms.txt
===================================================================
--- trunk/doc/Definitions/TaskTerms.txt	(revision 63)
+++ trunk/doc/Definitions/TaskTerms.txt	(revision 63)
@@ -0,0 +1,85 @@
+Task terms and definitions.
+
+Task:
+    description
+                - Default = required so nothing.
+                - Standard length used most places.
+
+    comment
+                - Default = "".     
+                - Longer for additional info only shown in detail views.
+
+    leadPerson  
+                - Default = current person.
+                - The primay contact.
+
+    targetStartDate
+                - Default = now.
+                - The date we would like task to start.
+                - Set by Schedule action.
+                - Set to now for Unscheduled Breakin.
+
+    targetCompletionDate
+                - Default = now.
+                - The date we would like task to be completed by.
+                - Set by Schedule action.
+                - Set to now for Unscheduled Breakin.
+
+    isScheduled 
+                - Default = false.
+                - Set true by Schedule action.
+
+    isApproved  
+                - Default=false, true when approved.
+                - Set true by Approve action
+                - Set false by Renege action.
+
+    isActive    
+                - Default=true, false if "Deleted".
+                - Set false by Delete action.
+                - Set true by Undelete action. 
+                - Require true when creating new entries/lists for dropdowns etc.
+                - Ignore when viewing old associations or creating lists for searching etc.
+
+    assignedPersons
+                - A task may have many assingedPersons of Class AssignedPerson.
+
+    entries       
+                - A task may have many entries of Class Entry.
+                - Persons other than the leadPerson or assingedPersons may create entries.
+    
+    modifications
+                - A task may have many modifications of Class Modification.
+
+    subTask ?    
+                - A task may have many subTasks of Class Task.
+                - Master/Slave/Parent/Child/FollowUp relationship still to sort out.
+
+#Should these be calulated or set by manual action?
+TaskStatus
+    Not Started
+    In Progress
+    Completed
+
+TaskType
+    Unscheduled Breakin - all work that was not scheduled, breakdowns/callouts.
+    Planned Maintenance - Planned work that is scheduled.
+    Project             - Capital expenditure upgrades or additions.
+    Turnaround          - Shutdowns, rebuilds, non Cap-Ex upgrades or additions.
+    Production?         - ?
+
+TaskGroup
+    ....                - custom used to groups tasks?
+    ....
+
+#Calculate missed state? 
+Missed() {
+    actualCompletionDate > targetCompletionDate
+}
+
+#External required actions.
+Show all modifications for a task.
+Show all assignedPersons for a task.
+Show all entries for a task.
+
+
