Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PRIORITY
Default value used for priority when a new
Task is created. |
Modifier and Type | Method and Description |
---|---|
void |
delegate(String userId)
delegates this task to the given user and sets the
delegationState to DelegationState.PENDING . |
DelegationState |
getDelegationState()
The current
DelegationState for this task. |
boolean |
isSuspended()
Indicates whether this task is suspended or not.
|
void |
setAssignee(String assignee)
The
userId of the person to which this task is delegated. |
void |
setCategory(String category)
Change the category of the task.
|
void |
setDelegationState(DelegationState delegationState)
The current
DelegationState for this task. |
void |
setDescription(String description)
Change the description of the task
|
void |
setDueDate(Date dueDate)
Change due date of the task.
|
void |
setFormKey(String formKey)
Change the form key of the task
|
void |
setLocalizedDescription(String description)
Sets an optional localized description for the task.
|
void |
setLocalizedName(String name)
Sets an optional localized name for the task.
|
void |
setName(String name)
Name or title of the task.
|
void |
setOwner(String owner)
The
userId of the person that is responsible for this task. |
void |
setParentTaskId(String parentTaskId)
the parent task for which this task is a subtask
|
void |
setPriority(int priority)
Sets the indication of how important/urgent this task is
|
void |
setTenantId(String tenantId)
Change the tenantId of the task
|
getAssignee, getCategory, getCreateTime, getDescription, getDueDate, getExecutionId, getFormKey, getId, getName, getOwner, getParentTaskId, getPriority, getProcessDefinitionId, getProcessInstanceId, getProcessVariables, getTaskDefinitionKey, getTaskLocalVariables, getTenantId
static final int DEFAULT_PRIORITY
Task
is created.void setName(String name)
void setLocalizedName(String name)
void setDescription(String description)
void setLocalizedDescription(String description)
void setPriority(int priority)
void setOwner(String owner)
userId
of the person that is responsible for this task.void setAssignee(String assignee)
userId
of the person to which this task is delegated.DelegationState getDelegationState()
DelegationState
for this task.void setDelegationState(DelegationState delegationState)
DelegationState
for this task.void setDueDate(Date dueDate)
void setCategory(String category)
void delegate(String userId)
delegationState
to DelegationState.PENDING
.
If no owner is set on the task, the owner is set to the current assignee of the task.void setParentTaskId(String parentTaskId)
void setTenantId(String tenantId)
void setFormKey(String formKey)
boolean isSuspended()
Copyright © 2016 Alfresco. All rights reserved.