Package com.comalatech.workflow.model
Interface Task
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canComplete()
Whether or not the current user can complete this taskList<? extends Assignment>
getAssignments()
The list of assignment of this taskList<? extends Completion>
getCompletions()
The list of completions of this taskAssignment
getCurrentAssignment()
Retrieves the current assignment for the task.Date
getDueDate()
Returns the due date for the task.Assignment
getLastAssignment()
Retrieves the current assignment for the task.Completion
getLastCompletion()
Retrieves the last completionString
getName()
The name of the taskString
getOutcome()
The Outcome of the last completionboolean
isCompleted()
Whether or not this task has been completed-
Methods inherited from interface com.comalatech.workflow.model.Activity
getActivityId, getComment, getDate, getPerformer, getUserName
-
-
-
-
Method Detail
-
getName
String getName()
The name of the task- Returns:
-
getAssignments
List<? extends Assignment> getAssignments()
The list of assignment of this task- Returns:
- the list of assignments
-
getCompletions
List<? extends Completion> getCompletions()
The list of completions of this task- Returns:
- the list of completions
-
getOutcome
String getOutcome()
The Outcome of the last completion- Returns:
-
isCompleted
boolean isCompleted()
Whether or not this task has been completed- Returns:
- true if the task has been completed and it has not been assigned since
-
canComplete
boolean canComplete()
Whether or not the current user can complete this task- Returns:
- true if the current user can complete this task
-
getLastCompletion
Completion getLastCompletion()
Retrieves the last completion- Returns:
- the last completion, or null if the task has never been completed
-
getCurrentAssignment
Assignment getCurrentAssignment()
Retrieves the current assignment for the task.- Returns:
- the last assignment for the task, or null if the task has never been assigned or if the task is completed
-
getLastAssignment
Assignment getLastAssignment()
Retrieves the current assignment for the task.- Returns:
- the last assignment for the task, or null if the task has never been assigned.
-
getDueDate
Date getDueDate()
Returns the due date for the task. This value may be null if there is no due date set.- Returns:
- the due date for this task, or null if not set.
- Since:
- 1.2
-
-