Package org.activiti.engine.delegate
Interface DelegateTask
- All Superinterfaces:
VariableScope
- All Known Subinterfaces:
TaskEntity
- All Known Implementing Classes:
TaskEntityImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCandidateGroup(String groupId) Adds the given group as candidate group to this taskvoidaddCandidateGroups(Collection<String> candidateGroups) Adds multiple groups as candidate group to this task.voidaddCandidateUser(String userId) Adds the given user as a candidate user to this task.voidaddCandidateUsers(Collection<String> candidateUsers) Adds multiple users as candidate user to this task.voidaddGroupIdentityLink(String groupId, String identityLinkType) Involves a group with group task.voidaddUserIdentityLink(String userId, String identityLinkType) Involves a user with a task.voidaddUserIdentityLink(String userId, String identityLinkType, byte[] details) Involves a user with a task.voiddeleteCandidateGroup(String groupId) Convenience shorthand for; with typeinvalid reference
#deleteGroupIdentityLink(String, String, String)IdentityLinkType.CANDIDATEvoiddeleteCandidateUser(String userId) Convenience shorthand fordeleteUserIdentityLink(String, String); with typeIdentityLinkType.CANDIDATEvoiddeleteGroupIdentityLink(String groupId, String identityLinkType) Removes the association between a group and a task for the given identityLinkType.voiddeleteUserIdentityLink(String userId, String identityLinkType) Removes the association between a user and a task for the given identityLinkType.TheuserId} of the person to which this task is delegated.invalid @link
{@link User.getId()Retrieves the candidate users and groups associated with the task.The category of the task.The date/time when this task was createdorg.activiti.bpmn.model.ActivitiListenerThe currentDelegationStatefor this task.Free text description of the task.Due date of the task.Returns the event name which triggered the task listener to fire for this task.Returns the execution currently at the task.Reference to the path of execution or null if it is not related to a process instance.The form key for the user taskgetId()DB id of the task.getName()Name or title of the task.getOwner()TheuserId} of the person responsible for this task.invalid @link
{@link User.getId()intindication 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] highestReference to the process definition or null if it is not related to a process.Reference to the process instance or null if it is not related to a process instance.The id of the activity in the process defining this task or null if this is not related to a processThe tenant identifier of this taskbooleanIndicated whether this task is suspended or not.voidsetAssignee(String assignee) TheuserId} of the person to which this task is delegated.invalid @link
{@link User.getId()voidsetCategory(String category) Change the category of the task.voidsetDescription(String description) Change the description of the taskvoidsetDueDate(Date dueDate) Change due date of the task.voidsetFormKey(String formKey) Change the form key of the taskvoidChange the name of the task.voidTheuserId} of the person responsible for this task.invalid @link
{@link User.getId()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] highestMethods 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 Details
-
getId
String getId()DB id of the task. -
getName
String getName()Name or title of the task. -
setName
Change the name of the task. -
getDescription
String getDescription()Free text description of the task. -
setDescription
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
String getProcessInstanceId()Reference to the process instance or null if it is not related to a process instance. -
getExecutionId
String getExecutionId()Reference to the path of execution or null if it is not related to a process instance. -
getProcessDefinitionId
String getProcessDefinitionId()Reference to the process definition or null if it is not related to a process. -
getCreateTime
Date getCreateTime()The date/time when this task was created -
getTaskDefinitionKey
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
String getTenantId()The tenant identifier of this task -
getFormKey
String getFormKey()The form key for the user task -
setFormKey
Change the form key of the task -
getExecution
DelegateExecution getExecution()Returns the execution currently at the task. -
getEventName
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
Adds the given user as a candidate user to this task. -
addCandidateUsers
Adds multiple users as candidate user to this task. -
addCandidateGroup
Adds the given group as candidate group to this task -
addCandidateGroups
Adds multiple groups as candidate group to this task. -
getOwner
String getOwner()TheuserId} of the person responsible for this task.invalid @link
{@link User.getId() -
setOwner
TheuserId} of the person responsible for this task.invalid @link
{@link User.getId() -
getAssignee
String getAssignee()TheuserId} of the person to which this task is delegated.invalid @link
{@link User.getId() -
setAssignee
TheuserId} of the person to which this task is delegated.invalid @link
{@link User.getId() -
getDueDate
Date getDueDate()Due date of the task. -
setDueDate
Change due date of the task. -
getCategory
String getCategory()The category of the task. This is an optional field and allows to 'tag' tasks as belonging to a certain category. -
setCategory
Change the category of the task. This is an optional field and allows to 'tag' tasks as belonging to a certain category. -
addUserIdentityLink
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.
-
addUserIdentityLink
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).details- serialized details of the identity link.- Throws:
ActivitiObjectNotFoundException- when the task or user doesn't exist.
-
addGroupIdentityLink
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
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
Convenience shorthand for; with typeinvalid reference
#deleteGroupIdentityLink(String, String, String)IdentityLinkType.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
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
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
Set<IdentityLink> getCandidates()Retrieves the candidate users and groups associated with the task.- Returns:
- set of
IdentityLinks of typeIdentityLinkType.CANDIDATE.
-