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.


