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 taskjava.util.List<? extends Assignment>
getAssignments()
The list of assignment of this taskjava.util.List<? extends Completion>
getCompletions()
The list of completions of this taskAssignment
getCurrentAssignment()
Retrieves the current assignment for the task.java.util.Date
getDueDate()
Returns the due date for the task.Assignment
getLastAssignment()
Retrieves the current assignment for the task.Completion
getLastCompletion()
Retrieves the last completionjava.lang.String
getName()
The name of the taskjava.lang.String
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
java.lang.String getName()
The name of the task- Returns:
-
getAssignments
java.util.List<? extends Assignment> getAssignments()
The list of assignment of this task- Returns:
- the list of assignments
-
getCompletions
java.util.List<? extends Completion> getCompletions()
The list of completions of this task- Returns:
- the list of completions
-
getOutcome
java.lang.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
java.util.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
-
-