Package org.activiti.engine.delegate
Interface DelegateTask
-
- All Superinterfaces:
VariableScope
- All Known Subinterfaces:
TaskEntity
- All Known Implementing Classes:
TaskEntityImpl
public interface DelegateTask extends VariableScope
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCandidateGroup(java.lang.String groupId)Adds the given group as candidate group to this taskvoidaddCandidateGroups(java.util.Collection<java.lang.String> candidateGroups)Adds multiple groups as candidate group to this task.voidaddCandidateUser(java.lang.String userId)Adds the given user as a candidate user to this task.voidaddCandidateUsers(java.util.Collection<java.lang.String> candidateUsers)Adds multiple users as candidate user to this task.voidaddGroupIdentityLink(java.lang.String groupId, java.lang.String identityLinkType)Involves a group with group task.voidaddUserIdentityLink(java.lang.String userId, java.lang.String identityLinkType)Involves a user with a task.voiddeleteCandidateGroup(java.lang.String groupId)Convenience shorthand for#deleteGroupIdentityLink(String, String, String); with typeIdentityLinkType.CANDIDATEvoiddeleteCandidateUser(java.lang.String userId)Convenience shorthand fordeleteUserIdentityLink(String, String); with typeIdentityLinkType.CANDIDATEvoiddeleteGroupIdentityLink(java.lang.String groupId, java.lang.String identityLinkType)Removes the association between a group and a task for the given identityLinkType.voiddeleteUserIdentityLink(java.lang.String userId, java.lang.String identityLinkType)Removes the association between a user and a task for the given identityLinkType.java.lang.StringgetAssignee()The {@link User.getId() userId} of the person to which this task is delegated.java.util.Set<IdentityLink>getCandidates()Retrieves the candidate users and groups associated with the task.java.lang.StringgetCategory()The category of the task.java.util.DategetCreateTime()The date/time when this task was createdorg.activiti.bpmn.model.ActivitiListenergetCurrentActivitiListener()DelegationStategetDelegationState()The currentDelegationStatefor this task.java.lang.StringgetDescription()Free text description of the task.java.util.DategetDueDate()Due date of the task.java.lang.StringgetEventName()Returns the event name which triggered the task listener to fire for this task.DelegateExecutiongetExecution()Returns the execution currently at the task.java.lang.StringgetExecutionId()Reference to the path of execution or null if it is not related to a process instance.java.lang.StringgetFormKey()The form key for the user taskjava.lang.StringgetId()DB id of the task.java.lang.StringgetName()Name or title of the task.java.lang.StringgetOwner()The {@link User.getId() userId} of the person responsible for this task.intgetPriority()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] highestjava.lang.StringgetProcessDefinitionId()Reference to the process definition or null if it is not related to a process.java.lang.StringgetProcessInstanceId()Reference to the process instance or null if it is not related to a process instance.java.lang.StringgetTaskDefinitionKey()The id of the activity in the process defining this task or null if this is not related to a processjava.lang.StringgetTenantId()The tenant identifier of this taskbooleanisSuspended()Indicated whether this task is suspended or not.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.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 taskvoidsetName(java.lang.String name)Change the name of the task.voidsetOwner(java.lang.String owner)The {@link User.getId() userId} of the person responsible for this task.voidsetPriority(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-
Methods inherited from interface org.activiti.engine.delegate.VariableScope
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
-
-
-
-
Method Detail
-
getId
java.lang.String getId()
DB id of the task.
-
getName
java.lang.String getName()
Name or title of the task.
-
setName
void setName(java.lang.String name)
Change the name of the task.
-
getDescription
java.lang.String getDescription()
Free text description of the task.
-
setDescription
void setDescription(java.lang.String description)
Change the description of the task
-
getPriority
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
-
setPriority
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
-
getProcessInstanceId
java.lang.String getProcessInstanceId()
Reference to the process instance or null if it is not related to a process instance.
-
getExecutionId
java.lang.String getExecutionId()
Reference to the path of execution or null if it is not related to a process instance.
-
getProcessDefinitionId
java.lang.String getProcessDefinitionId()
Reference to the process definition or null if it is not related to a process.
-
getCreateTime
java.util.Date getCreateTime()
The date/time when this task was created
-
getTaskDefinitionKey
java.lang.String getTaskDefinitionKey()
The id of the activity in the process defining this task or null if this is not related to a process
-
isSuspended
boolean isSuspended()
Indicated whether this task is suspended or not.
-
getTenantId
java.lang.String getTenantId()
The tenant identifier of this task
-
getFormKey
java.lang.String getFormKey()
The form key for the user task
-
setFormKey
void setFormKey(java.lang.String formKey)
Change the form key of the task
-
getExecution
DelegateExecution getExecution()
Returns the execution currently at the task.
-
getEventName
java.lang.String getEventName()
Returns the event name which triggered the task listener to fire for this task.
-
getCurrentActivitiListener
org.activiti.bpmn.model.ActivitiListener getCurrentActivitiListener()
-
getDelegationState
DelegationState getDelegationState()
The currentDelegationStatefor this task.
-
addCandidateUser
void addCandidateUser(java.lang.String userId)
Adds the given user as a candidate user to this task.
-
addCandidateUsers
void addCandidateUsers(java.util.Collection<java.lang.String> candidateUsers)
Adds multiple users as candidate user to this task.
-
addCandidateGroup
void addCandidateGroup(java.lang.String groupId)
Adds the given group as candidate group to this task
-
addCandidateGroups
void addCandidateGroups(java.util.Collection<java.lang.String> candidateGroups)
Adds multiple groups as candidate group to this task.
-
getOwner
java.lang.String getOwner()
The {@link User.getId() userId} of the person responsible for this task.
-
setOwner
void setOwner(java.lang.String owner)
The {@link User.getId() userId} of the person responsible for this task.
-
getAssignee
java.lang.String getAssignee()
The {@link User.getId() userId} of the person to which this task is delegated.
-
setAssignee
void setAssignee(java.lang.String assignee)
The {@link User.getId() userId} of the person to which this task is delegated.
-
getDueDate
java.util.Date getDueDate()
Due date of the task.
-
setDueDate
void setDueDate(java.util.Date dueDate)
Change due date of the task.
-
getCategory
java.lang.String getCategory()
The category of the task. This is an optional field and allows to 'tag' tasks as belonging to a certain category.
-
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.
-
addUserIdentityLink
void addUserIdentityLink(java.lang.String userId, java.lang.String identityLinkType)Involves a user with a task. The type of identity link is defined by the given identityLinkType.- Parameters:
userId- id of the user involve, cannot be null.identityLinkType- type of identityLink, cannot be null (@seeIdentityLinkType).- Throws:
ActivitiObjectNotFoundException- when the task or user doesn't exist.
-
addGroupIdentityLink
void addGroupIdentityLink(java.lang.String groupId, java.lang.String identityLinkType)Involves a group with group task. The type of identityLink is defined by the given identityLink.- Parameters:
groupId- id of the group to involve, cannot be null.identityLinkType- type of identity, cannot be null (@seeIdentityLinkType).- Throws:
ActivitiObjectNotFoundException- when the task or group doesn't exist.
-
deleteCandidateUser
void deleteCandidateUser(java.lang.String userId)
Convenience shorthand fordeleteUserIdentityLink(String, String); with typeIdentityLinkType.CANDIDATE- Parameters:
userId- id of the user to use as candidate, cannot be null.- Throws:
ActivitiObjectNotFoundException- when the task or user doesn't exist.
-
deleteCandidateGroup
void deleteCandidateGroup(java.lang.String groupId)
Convenience shorthand for#deleteGroupIdentityLink(String, String, String); with typeIdentityLinkType.CANDIDATE- Parameters:
groupId- id of the group to use as candidate, cannot be null.- Throws:
ActivitiObjectNotFoundException- when the task or group doesn't exist.
-
deleteUserIdentityLink
void deleteUserIdentityLink(java.lang.String userId, java.lang.String identityLinkType)Removes the association between a user and a task for the given identityLinkType.- Parameters:
userId- id of the user involve, cannot be null.identityLinkType- type of identityLink, cannot be null (@seeIdentityLinkType).- Throws:
ActivitiObjectNotFoundException- when the task or user doesn't exist.
-
deleteGroupIdentityLink
void deleteGroupIdentityLink(java.lang.String groupId, java.lang.String identityLinkType)Removes the association between a group and a task for the given identityLinkType.- Parameters:
groupId- id of the group to involve, cannot be null.identityLinkType- type of identity, cannot be null (@seeIdentityLinkType).- Throws:
ActivitiObjectNotFoundException- when the task or group doesn't exist.
-
getCandidates
java.util.Set<IdentityLink> getCandidates()
Retrieves the candidate users and groups associated with the task.- Returns:
- set of
IdentityLinks of typeIdentityLinkType.CANDIDATE.
-
-