public interface DelegateTask extends VariableScope, BpmnModelExecutionContext, ProcessEngineServicesAware
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. |
UserTask |
getBpmnModelElementInstance()
Provides access to the current
UserTask Element from the Bpmn Model. |
Set<IdentityLink> |
getCandidates()
Retrieves the candidate users and groups associated with the task.
|
Date |
getCreateTime()
The date/time when this task was created
|
String |
getDeleteReason()
Get delete reason of the 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 |
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
|
void |
setAssignee(String assignee)
The
userId of the person to which this task is delegated. |
void |
setDescription(String description)
Change the description of the task
|
void |
setDueDate(Date dueDate)
Change due date 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
|
getVariable, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocal
getBpmnModelInstance
getProcessEngineServices
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()
DelegateExecution getExecution()
String getEventName()
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 getDeleteReason()
void addUserIdentityLink(String userId, String identityLinkType)
userId
- id of the user involve, cannot be null.identityLinkType
- type of identityLink, cannot be null (@see IdentityLinkType
).ProcessEngineException
- 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
).ProcessEngineException
- 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.ProcessEngineException
- 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.ProcessEngineException
- 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
).ProcessEngineException
- 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
).ProcessEngineException
- when the task or group doesn't exist.Set<IdentityLink> getCandidates()
IdentityLink
s of type IdentityLinkType.CANDIDATE
.UserTask getBpmnModelElementInstance()
UserTask
Element from the Bpmn Model.getBpmnModelElementInstance
in interface BpmnModelExecutionContext
UserTask
Element from the Bpmn Model.Copyright © 2015. All rights reserved.