public interface DelegateTask extends VariableScope
Modifier and Type | Method and Description |
---|---|
void |
addCandidateGroup(String groupId)
Adds the given group as candidate group to this task
|
void |
addCandidateGroups(Collection<String> candidateGroups)
Adds multiple groups as candidate group to this task.
|
void |
addCandidateUser(String userId)
Adds the given user as a candidate user to this task.
|
void |
addCandidateUsers(Collection<String> candidateUsers)
Adds multiple users as candidate user to this task.
|
void |
addGroupIdentityLink(String groupId,
String identityLinkType)
Involves a group with group task.
|
void |
addUserIdentityLink(String userId,
String identityLinkType)
Involves a user with a task.
|
void |
deleteCandidateGroup(String groupId)
Convenience shorthand for
#deleteGroupIdentityLink(String, String, String) ; with type IdentityLinkType.CANDIDATE |
void |
deleteCandidateUser(String userId)
Convenience shorthand for
deleteUserIdentityLink(String, String) ; with type IdentityLinkType.CANDIDATE |
void |
deleteGroupIdentityLink(String groupId,
String identityLinkType)
Removes the association between a group and a task for the given identityLinkType.
|
void |
deleteUserIdentityLink(String userId,
String identityLinkType)
Removes the association between a user and a task for the given identityLinkType.
|
String |
getAssignee()
The
userId of the person to which this task is delegated. |
Set<IdentityLink> |
getCandidates()
Retrieves the candidate users and groups associated with the task.
|
String |
getCategory()
The category of the task.
|
Date |
getCreateTime()
The date/time when this task was created
|
org.activiti.bpmn.model.ActivitiListener |
getCurrentActivitiListener() |
DelegationState |
getDelegationState()
The current
DelegationState for this task. |
String |
getDescription()
Free text description of the task.
|
Date |
getDueDate()
Due date of the task.
|
String |
getEventName()
Returns the event name which triggered the task listener to fire for this task.
|
DelegateExecution |
getExecution()
Returns the execution currently at the task.
|
String |
getExecutionId()
Reference to the path of execution or null if it is not related to a process instance.
|
String |
getFormKey()
The form key for the user task
|
String |
getId()
DB id of the task.
|
String |
getName()
Name or title of the task.
|
String |
getOwner()
The
userId of the person responsible for this task. |
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()
The tenant identifier of this task
|
boolean |
isSuspended()
Indicated 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 |
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 |
setName(String name)
Change the name of the task.
|
void |
setOwner(String owner)
The
userId of the person responsible for this task. |
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
|
getTransientVariable, getTransientVariableLocal, getTransientVariables, getTransientVariablesLocal, getVariable, getVariable, getVariable, getVariableInstance, getVariableInstance, getVariableInstanceLocal, getVariableInstanceLocal, getVariableInstances, getVariableInstances, getVariableInstances, getVariableInstancesLocal, getVariableInstancesLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariables, getVariables, getVariablesLocal, getVariablesLocal, getVariablesLocal, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeTransientVariable, removeTransientVariableLocal, removeTransientVariables, removeTransientVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setTransientVariable, setTransientVariableLocal, setTransientVariables, setTransientVariablesLocal, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariables, setVariablesLocal
String getId()
String getName()
void setName(String name)
String getDescription()
void setDescription(String description)
int getPriority()
void setPriority(int priority)
String getProcessInstanceId()
String getExecutionId()
String getProcessDefinitionId()
Date getCreateTime()
String getTaskDefinitionKey()
boolean isSuspended()
String getTenantId()
String getFormKey()
void setFormKey(String formKey)
DelegateExecution getExecution()
String getEventName()
org.activiti.bpmn.model.ActivitiListener getCurrentActivitiListener()
DelegationState getDelegationState()
DelegationState
for this task.void addCandidateUser(String userId)
void addCandidateUsers(Collection<String> candidateUsers)
void addCandidateGroup(String groupId)
void addCandidateGroups(Collection<String> candidateGroups)
String getOwner()
userId
of the person responsible for this task.void setOwner(String owner)
userId
of the person responsible for this task.String getAssignee()
userId
of the person to which this task is delegated.void setAssignee(String assignee)
userId
of the person to which this task is delegated.Date getDueDate()
void setDueDate(Date dueDate)
String getCategory()
void setCategory(String category)
void addUserIdentityLink(String userId, String identityLinkType)
userId
- id of the user involve, cannot be null.identityLinkType
- type of identityLink, cannot be null (@see IdentityLinkType
).ActivitiObjectNotFoundException
- when the task or user doesn't exist.void addGroupIdentityLink(String groupId, String identityLinkType)
groupId
- id of the group to involve, cannot be null.identityLinkType
- type of identity, cannot be null (@see IdentityLinkType
).ActivitiObjectNotFoundException
- when the task or group doesn't exist.void deleteCandidateUser(String userId)
deleteUserIdentityLink(String, String)
; with type IdentityLinkType.CANDIDATE
userId
- id of the user to use as candidate, cannot be null.ActivitiObjectNotFoundException
- when the task or user doesn't exist.void deleteCandidateGroup(String groupId)
#deleteGroupIdentityLink(String, String, String)
; with type IdentityLinkType.CANDIDATE
groupId
- id of the group to use as candidate, cannot be null.ActivitiObjectNotFoundException
- when the task or group doesn't exist.void deleteUserIdentityLink(String userId, String identityLinkType)
userId
- id of the user involve, cannot be null.identityLinkType
- type of identityLink, cannot be null (@see IdentityLinkType
).ActivitiObjectNotFoundException
- when the task or user doesn't exist.void deleteGroupIdentityLink(String groupId, String identityLinkType)
groupId
- id of the group to involve, cannot be null.identityLinkType
- type of identity, cannot be null (@see IdentityLinkType
).ActivitiObjectNotFoundException
- when the task or group doesn't exist.Set<IdentityLink> getCandidates()
IdentityLink
s of type IdentityLinkType.CANDIDATE
.Copyright © 2017 Alfresco. All rights reserved.