public interface Task
Modifier and Type | Field and Description |
---|---|
static int |
PRIORITY_MAXIMUM |
static int |
PRIORITY_MINIUM |
static int |
PRIORITY_NORMAL |
Modifier and Type | Method and Description |
---|---|
void |
delegate(String userId)
delegates this task to the given user and sets the
delegationState to DelegationState.PENDING . |
String |
getAssignee()
|
String |
getCaseDefinitionId()
Reference to the case definition or null if it is not related to a case.
|
String |
getCaseExecutionId()
Reference to the path of case execution or null if it is not related to a case instance.
|
String |
getCaseInstanceId()
Reference to the case instance or null if it is not related to a case instance.
|
Date |
getCreateTime()
The date/time when this task was created
|
DelegationState |
getDelegationState()
The current
DelegationState for this task. |
String |
getDescription()
Free text description of the task.
|
Date |
getDueDate()
Due date of the task.
|
String |
getExecutionId()
Reference to the path of execution or null if it is not related to a process instance.
|
Date |
getFollowUpDate()
Follow-up date of the task.
|
String |
getFormKey()
Provides the form key for the task.
|
String |
getId()
DB id of the task.
|
String |
getName()
Name or title of the task.
|
String |
getOwner()
The
userId of the person that is responsible for this task. |
String |
getParentTaskId()
the parent task for which this task is a subtask
|
int |
getPriority()
indication of how important/urgent this task is with a number between
0 and 100 where higher values mean a higher priority and lower values mean
lower priority: [0..19] lowest, [20..39] low, [40..59] normal, [60..79] high
[80..100] highest
|
String |
getProcessDefinitionId()
Reference to the process definition or null if it is not related to a process.
|
String |
getProcessInstanceId()
Reference to the process instance or null if it is not related to a process instance.
|
String |
getTaskDefinitionKey()
The id of the activity in the process defining this task or null if this is not related to a process
|
String |
getTenantId()
Returns the task's tenant id or null in case this task does not belong to a tenant.
|
boolean |
isSuspended()
Indicated whether this task is suspended or not.
|
void |
setAssignee(String assignee)
|
void |
setCaseInstanceId(String caseInstanceId)
The case instance id for which this task is associated for.
|
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 |
setFollowUpDate(Date followUpDate)
Change follow-up date of 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)
indication of how important/urgent this task is with a number between
0 and 100 where higher values mean a higher priority and lower values mean
lower priority: [0..19] lowest, [20..39] low, [40..59] normal, [60..79] high
[80..100] highest
|
void |
setTenantId(String tenantId)
Sets the tenant id for this task.
|
static final int PRIORITY_MINIUM
static final int PRIORITY_NORMAL
static final int PRIORITY_MAXIMUM
String getId()
String getName()
void setName(String name)
String getDescription()
void setDescription(String description)
int getPriority()
void setPriority(int priority)
String getOwner()
userId
of the person that is responsible for this task.
This is used when a task is delegated
.void setOwner(String owner)
userId
of the person that is responsible for this task.
This is used when a task is delegated
.String getAssignee()
void setAssignee(String assignee)
DelegationState getDelegationState()
DelegationState
for this task.void setDelegationState(DelegationState delegationState)
DelegationState
for this task.String getProcessInstanceId()
String getExecutionId()
String getProcessDefinitionId()
String getCaseInstanceId()
void setCaseInstanceId(String caseInstanceId)
String getCaseExecutionId()
String getCaseDefinitionId()
Date getCreateTime()
String getTaskDefinitionKey()
Date getDueDate()
void setDueDate(Date dueDate)
Date getFollowUpDate()
void setFollowUpDate(Date followUpDate)
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)
String getParentTaskId()
boolean isSuspended()
String getFormKey()
NOTE: If the task instance us obtained through a query, this property is only populated in case the
TaskQuery.initializeFormKeys()
method is called. If this method is called without a prior call to
TaskQuery.initializeFormKeys()
, it will throw a BadUserRequestException
.
BadUserRequestException
- in case the form key is not initialized.String getTenantId()
void setTenantId(String tenantId)
tenantId
- the tenant id to setCopyright © 2021. All rights reserved.