Package com.comalatech.workflow.model
Interface Task
- All Superinterfaces:
Activity
Represents a task
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether or not the current user can complete this taskList<? extends Assignment>
The list of assignment of this taskList<? extends Completion>
The list of completions of this taskRetrieves the current assignment for the task.Returns the due date for the task.Retrieves the current assignment for the task.Retrieves the last completiongetName()
The name of the taskThe Outcome of the last completionboolean
Whether or not this task has been completedMethods inherited from interface com.comalatech.workflow.model.Activity
getActivityId, getComment, getDate, getPerformer, getUserName
-
Method Details
-
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
-