Package org.activiti.engine.task
Interface Task
-
- All Superinterfaces:
TaskInfo
- All Known Subinterfaces:
TaskEntity
- All Known Implementing Classes:
TaskEntityImpl
@Internal public interface Task extends TaskInfo
Represents one task for a human user.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_PRIORITYDefault value used for priority when a newTaskis created.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.IntegergetAppVersion()DelegationStategetDelegationState()The currentDelegationStatefor this task.booleanisSuspended()Indicates whether this task is suspended or not.voidsetAppVersion(java.lang.Integer appVersion)voidsetAssignee(java.lang.String assignee)The {@link User.getId() userId} of the person to which this task is delegated.voidsetCategory(java.lang.String category)Change the category of the task.voidsetDelegationState(DelegationState delegationState)The currentDelegationStatefor this task.voidsetDescription(java.lang.String description)Change the description of the taskvoidsetDueDate(java.util.Date dueDate)Change due date of the task.voidsetFormKey(java.lang.String formKey)Change the form key of the taskvoidsetLocalizedDescription(java.lang.String description)Sets an optional localized description for the task.voidsetLocalizedName(java.lang.String name)Sets an optional localized name for the task.voidsetName(java.lang.String name)Name or title of the task.voidsetOwner(java.lang.String owner)The {@link User.getId() userId} of the person that is responsible for this task.voidsetParentTaskId(java.lang.String parentTaskId)the parent task for which this task is a subtaskvoidsetPriority(int priority)Sets the indication of how important/urgent this task isvoidsetTenantId(java.lang.String tenantId)Change the tenantId of the task-
Methods inherited from interface org.activiti.engine.task.TaskInfo
getAssignee, getBusinessKey, getCategory, getClaimTime, getCreateTime, getDescription, getDueDate, getExecutionId, getFormKey, getId, getName, getOwner, getParentTaskId, getPriority, getProcessDefinitionId, getProcessInstanceId, getProcessVariables, getTaskDefinitionKey, getTaskLocalVariables, getTenantId
-
-
-
-
Field Detail
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITY
Default value used for priority when a newTaskis created.- See Also:
- Constant Field Values
-
-
Method Detail
-
setName
void setName(java.lang.String name)
Name or title of the task.
-
setLocalizedName
void setLocalizedName(java.lang.String name)
Sets an optional localized name for the task.
-
setDescription
void setDescription(java.lang.String description)
Change the description of the task
-
setLocalizedDescription
void setLocalizedDescription(java.lang.String description)
Sets an optional localized description for the task.
-
setPriority
void setPriority(int priority)
Sets the indication of how important/urgent this task is
-
setOwner
void setOwner(java.lang.String owner)
The {@link User.getId() userId} of the person that is responsible for this task.
-
setAssignee
void setAssignee(java.lang.String assignee)
The {@link User.getId() userId} of the person to which this task is delegated.
-
getDelegationState
DelegationState getDelegationState()
The currentDelegationStatefor this task.
-
setDelegationState
void setDelegationState(DelegationState delegationState)
The currentDelegationStatefor this task.
-
setDueDate
void setDueDate(java.util.Date dueDate)
Change due date of the task.
-
setCategory
void setCategory(java.lang.String category)
Change the category of the task. This is an optional field and allows to 'tag' tasks as belonging to a certain category.
-
setParentTaskId
void setParentTaskId(java.lang.String parentTaskId)
the parent task for which this task is a subtask
-
setTenantId
void setTenantId(java.lang.String tenantId)
Change the tenantId of the task
-
setFormKey
void setFormKey(java.lang.String formKey)
Change the form key of the task
-
isSuspended
boolean isSuspended()
Indicates whether this task is suspended or not.
-
getAppVersion
java.lang.Integer getAppVersion()
-
setAppVersion
void setAppVersion(java.lang.Integer appVersion)
-
-