public class TaskEntity extends AbstractVariableScope implements Task, DelegateTask, Serializable, DbEntity, HasDbRevision, HasDbReferences, CommandContextListener, VariableStore.VariablesProvider<VariableInstanceEntity>
Modifier and Type | Class and Description |
---|---|
static class |
TaskEntity.TaskState |
cachedElContext
PRIORITY_MAXIMUM, PRIORITY_MINIUM, PRIORITY_NORMAL
Modifier | Constructor and Description |
---|---|
|
TaskEntity()
Mybatis constructor
|
|
TaskEntity(CaseExecutionEntity caseExecution)
CMMN execution constructor
|
|
TaskEntity(ExecutionEntity execution)
BPMN execution constructor
|
|
TaskEntity(String id)
Standalone task constructor
|
protected |
TaskEntity(TaskEntity.TaskState initialState) |
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 |
addCustomLifecycleListener(VariableInstanceLifecycleListener<VariableInstanceEntity> customLifecycleListener) |
void |
addGroupIdentityLink(String groupId,
String identityLinkType)
Involves a group with group task.
|
IdentityLinkEntity |
addIdentityLink(String userId,
String groupId,
String type) |
void |
addIdentityLinkChanges(String type,
String oldProperty,
String newProperty) |
void |
addUserIdentityLink(String userId,
String identityLinkType)
Involves a user with a task.
|
void |
bpmnError(String errorCode,
String errorMessage,
Map<String,Object> variables) |
void |
caseExecutionCompleted() |
void |
complete()
set status to complete.
|
void |
delegate(String userId)
delegates this task to the given user and sets the
delegationState to DelegationState.PENDING . |
void |
delete(String deleteReason,
boolean cascade) |
void |
delete(String deleteReason,
boolean cascade,
boolean skipCustomListeners) |
protected void |
deleteAuthorizations(AuthorizationEntity[] authorizations) |
void |
deleteCandidateGroup(String groupId)
Convenience shorthand for
#deleteGroupIdentityLink(String, String, String) ; with type IdentityLinkType.CANDIDATE |
void |
deleteCandidateUser(String userId)
Convenience shorthand for
DelegateTask.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 |
deleteIdentityLink(String userId,
String groupId,
String type) |
void |
deleteIdentityLinks() |
void |
deleteUserIdentityLink(String userId,
String identityLinkType)
Removes the association between a user and a task for the given identityLinkType.
|
void |
dispatchEvent(VariableEvent variableEvent) |
protected void |
ensureCaseExecutionInitialized() |
void |
ensureParentTaskActive() |
protected void |
ensureTaskActive() |
protected void |
ensureTenantIdNotChanged() |
boolean |
equals(Object obj) |
void |
escalation(String escalationCode,
Map<String,Object> variables) |
void |
executeMetrics(String metricsName) |
protected void |
fireAddIdentityLinkAuthorizationProvider(String type,
String userId,
String groupId) |
protected void |
fireAssigneeAuthorizationProvider(String oldAssignee,
String newAssignee) |
protected boolean |
fireAssignmentEvent() |
void |
fireAuthorizationProvider() |
protected void |
fireAuthorizationProvider(String property,
String oldValue,
String newValue) |
protected void |
fireDeleteIdentityLinkAuthorizationProvider(String type,
String userId,
String groupId) |
boolean |
fireEvent(String taskEventName) |
void |
fireHistoricIdentityLinks() |
void |
fireIdentityLinkHistoryEvents(String userId,
String groupId,
String type,
HistoryEventTypes historyEventType) |
protected void |
fireOwnerAuthorizationProvider(String oldOwner,
String newOwner) |
Map<String,Object> |
getActivityInstanceVariables() |
String |
getAssignee()
|
UserTask |
getBpmnModelElementInstance()
Provides access to the current
UserTask Element from the Bpmn Model. |
BpmnModelInstance |
getBpmnModelInstance()
Returns the
BpmnModelInstance for the currently executed Bpmn Model |
Set<IdentityLink> |
getCandidates()
Retrieves the candidate users and groups associated with the task.
|
CaseDefinitionEntity |
getCaseDefinition() |
String |
getCaseDefinitionId()
Reference to the case definition or null if it is not related to a case.
|
CaseExecutionEntity |
getCaseExecution()
Returns the case execution currently at the task.
|
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 |
getDelegationStateString() |
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.
|
ExecutionEntity |
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.
|
Date |
getFollowUpDate()
Follow-up date of the task.
|
String |
getFormKey()
Provides the form key for the task.
|
String |
getId()
DB id of the task.
|
List<IdentityLinkEntity> |
getIdentityLinks() |
protected List<TaskListener> |
getListenersForEvent(String event) |
String |
getName()
Name or title of the task.
|
String |
getOwner()
The
userId of the person that is responsible for this task. |
TaskEntity |
getParentTask() |
String |
getParentTaskId()
the parent task for which this task is a subtask
|
AbstractVariableScope |
getParentVariableScope() |
Object |
getPersistentState()
Returns a representation of the object,
as would be stored in the database.
|
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
|
ProcessDefinitionEntity |
getProcessDefinition() |
String |
getProcessDefinitionId()
Reference to the process definition or null if it is not related to a process.
|
ProcessEngine |
getProcessEngine()
Returns the
ProcessEngine providing access to the
public API of the process engine. |
ProcessEngineServices |
getProcessEngineServices()
Returns the
ProcessEngineServices providing access to the
public API of the process engine. |
ExecutionEntity |
getProcessInstance() |
String |
getProcessInstanceId()
Reference to the process instance or null if it is not related to a process instance.
|
Map<String,PropertyChange> |
getPropertyChanges() |
Map<String,Class> |
getReferencedEntitiesIdAndClass()
Scope: IN-MEMORY references
|
Set<String> |
getReferencedEntityIds()
Scope: IN-MEMORY references
|
protected ResourceAuthorizationProvider |
getResourceAuthorizationProvider() |
int |
getRevision() |
int |
getRevisionNext() |
int |
getSuspensionState() |
TaskDefinition |
getTaskDefinition() |
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.
|
protected TaskListener |
getTimeoutListener(String timeoutId) |
protected VariableInstanceFactory<CoreVariableInstance> |
getVariableInstanceFactory() |
protected List<VariableInstanceLifecycleListener<CoreVariableInstance>> |
getVariableInstanceLifecycleListeners() |
String |
getVariableScopeKey() |
Collection<VariableInstanceEntity> |
getVariablesInternal() |
protected VariableStore<CoreVariableInstance> |
getVariableStore() |
int |
hashCode() |
void |
initializeFormKey() |
void |
insert() |
protected boolean |
invokeListener(CoreExecution currentExecution,
String eventName,
TaskListener taskListener) |
protected boolean |
invokeListener(String taskEventName,
TaskListener taskListener) |
protected boolean |
isAuthorizationEnabled() |
boolean |
isDeleted() |
boolean |
isStandaloneTask() |
boolean |
isSuspended()
Indicated whether this task is suspended or not.
|
void |
logUserOperation(String operation) |
IdentityLinkEntity |
newIdentityLink(String userId,
String groupId,
String type) |
void |
onCommandContextClose(CommandContext commandContext) |
void |
onCommandFailed(CommandContext commandContext,
Throwable t) |
protected void |
propagateExecutionTenantId(ExecutionEntity execution) |
void |
propagateParentTaskTenantId() |
protected void |
propertyChanged(String propertyName,
Object orgValue,
Object newValue)
Tracks a property change.
|
Collection<VariableInstanceEntity> |
provideVariables() |
Collection<VariableInstanceEntity> |
provideVariables(Collection<String> variableNames) |
protected void |
registerCommandContextCloseListener() |
VariableInstanceLifecycleListener<VariableInstanceEntity> |
removeCustomLifecycleListener(VariableInstanceLifecycleListener<VariableInstanceEntity> customLifecycleListener) |
void |
resolve() |
protected void |
saveAuthorizations(AuthorizationEntity[] authorizations) |
void |
setAssignee(String assignee)
|
void |
setAssigneeWithoutCascade(String assignee) |
void |
setCaseDefinitionId(String caseDefinitionId) |
void |
setCaseExecution(CaseExecutionEntity caseExecution) |
void |
setCaseExecutionId(String caseExecutionId) |
void |
setCaseInstanceId(String caseInstanceId)
The case instance id for which this task is associated for.
|
void |
setCaseInstanceIdWithoutCascade(String caseInstanceId) |
void |
setCreateTime(Date createTime) |
void |
setDelegationState(DelegationState delegationState)
The current
DelegationState for this task. |
void |
setDelegationStateString(String delegationState)
Setter for mybatis mapper.
|
void |
setDelegationStateWithoutCascade(DelegationState delegationState) |
void |
setDeleted(boolean isDeleted) |
void |
setDescription(String description)
Change the description of the task
|
void |
setDescriptionWithoutCascade(String description) |
void |
setDueDate(Date dueDate)
Change due date of the task.
|
void |
setDueDateWithoutCascade(Date dueDate) |
void |
setEventName(String eventName) |
void |
setExecution(PvmExecutionImpl execution) |
void |
setExecutionId(String executionId) |
void |
setExecutionVariables(Map<String,Object> parameters) |
void |
setFollowUpDate(Date followUpDate)
Change follow-up date of the task.
|
void |
setFollowUpDateWithoutCascade(Date followUpDate) |
void |
setId(String id) |
void |
setName(String taskName)
Name or title of the task.
|
void |
setNameWithoutCascade(String taskName) |
void |
setOwner(String owner)
The
userId of the person that is responsible for this task. |
void |
setOwnerWithoutCascade(String owner) |
void |
setParentTaskId(String parentTaskId)
the parent task for which this task is a subtask
|
void |
setParentTaskIdWithoutCascade(String parentTaskId) |
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 |
setPriorityWithoutCascade(int priority) |
void |
setProcessDefinitionId(String processDefinitionId) |
void |
setProcessInstance(ExecutionEntity processInstance) |
void |
setProcessInstanceId(String processInstanceId) |
void |
setRevision(int revision) |
void |
setSuspensionState(int suspensionState) |
void |
setTaskDefinition(TaskDefinition taskDefinition) |
void |
setTaskDefinitionKey(String taskDefinitionKey) |
void |
setTaskDefinitionKeyWithoutCascade(String taskDefinitionKey) |
void |
setTenantId(String tenantId)
Sets the tenant id for this task.
|
void |
setVariablesLocal(Map<String,?> variables,
boolean skipJavaSerializationFormatCheck) |
protected boolean |
tenantIdIsSame(TaskEntity otherTask) |
String |
toString() |
boolean |
transitionTo(TaskEntity.TaskState state) |
boolean |
triggerTimeoutEvent(String timeoutId) |
boolean |
triggerUpdateEvent() |
void |
update() |
collectVariableNames, collectVariables, getCachedElContext, getSourceActivityVariableScope, getValueFromVariableInstance, getVariable, getVariable, getVariableInstance, getVariableInstanceLocal, getVariableInstancesLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, initializeVariableStore, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersUpdate, invokeVariableLifecycleListenersUpdate, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setVariable, setVariable, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariableLocal, setVariables, setVariables, setVariablesLocal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getVariable, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocal
getDependentEntities
protected static final List<VariableInstanceLifecycleListener<CoreVariableInstance>> DEFAULT_VARIABLE_LIFECYCLE_LISTENERS
protected static final EnginePersistenceLogger LOG
public static final String DELETE_REASON_COMPLETED
public static final String DELETE_REASON_DELETED
protected String id
protected int revision
protected String owner
protected String assignee
protected DelegationState delegationState
protected String parentTaskId
protected transient TaskEntity parentTask
protected String name
protected String description
protected int priority
protected Date createTime
protected Date dueDate
protected Date followUpDate
protected int suspensionState
protected TaskEntity.TaskState lifecycleState
protected String tenantId
protected boolean isIdentityLinksInitialized
protected transient List<IdentityLinkEntity> taskIdentityLinkEntities
protected String executionId
protected transient ExecutionEntity execution
protected String processInstanceId
protected transient ExecutionEntity processInstance
protected String processDefinitionId
protected String caseExecutionId
protected transient CaseExecutionEntity caseExecution
protected String caseInstanceId
protected String caseDefinitionId
protected transient TaskDefinition taskDefinition
protected String taskDefinitionKey
protected boolean isDeleted
protected String deleteReason
protected String eventName
protected boolean isFormKeyInitialized
protected String formKey
protected transient VariableStore<VariableInstanceEntity> variableStore
protected transient boolean skipCustomListeners
protected transient Map<String,PropertyChange> propertyChanges
protected transient List<PropertyChange> identityLinkChanges
protected List<VariableInstanceLifecycleListener<VariableInstanceEntity>> customLifecycleListeners
public static final String ASSIGNEE
public static final String DELEGATION
public static final String DELETE
public static final String DESCRIPTION
public static final String DUE_DATE
public static final String FOLLOW_UP_DATE
public static final String NAME
public static final String OWNER
public static final String PARENT_TASK
public static final String PRIORITY
public static final String CASE_INSTANCE_ID
public TaskEntity()
public TaskEntity(String id)
protected TaskEntity(TaskEntity.TaskState initialState)
public TaskEntity(ExecutionEntity execution)
public TaskEntity(CaseExecutionEntity caseExecution)
public void insert()
protected void propagateExecutionTenantId(ExecutionEntity execution)
public void propagateParentTaskTenantId()
public void update()
protected void ensureTenantIdNotChanged()
protected boolean tenantIdIsSame(TaskEntity otherTask)
public void complete()
DelegateTask
complete
in interface DelegateTask
public void caseExecutionCompleted()
public void delete(String deleteReason, boolean cascade)
public void delete(String deleteReason, boolean cascade, boolean skipCustomListeners)
public void delegate(String userId)
Task
delegationState
to DelegationState.PENDING
.
If no owner is set on the task, the owner is set to the current assignee of the task.public void resolve()
public Object getPersistentState()
DbEntity
getPersistentState
in interface DbEntity
public int getRevisionNext()
getRevisionNext
in interface HasDbRevision
public void ensureParentTaskActive()
protected void ensureTaskActive()
public UserTask getBpmnModelElementInstance()
DelegateTask
UserTask
Element from the Bpmn Model.getBpmnModelElementInstance
in interface BpmnModelExecutionContext
getBpmnModelElementInstance
in interface DelegateTask
UserTask
Element from the Bpmn Model.public BpmnModelInstance getBpmnModelInstance()
BpmnModelExecutionContext
BpmnModelInstance
for the currently executed Bpmn ModelgetBpmnModelInstance
in interface BpmnModelExecutionContext
BpmnModelInstance
protected VariableStore<CoreVariableInstance> getVariableStore()
getVariableStore
in class AbstractVariableScope
protected VariableInstanceFactory<CoreVariableInstance> getVariableInstanceFactory()
getVariableInstanceFactory
in class AbstractVariableScope
protected List<VariableInstanceLifecycleListener<CoreVariableInstance>> getVariableInstanceLifecycleListeners()
getVariableInstanceLifecycleListeners
in class AbstractVariableScope
public void addCustomLifecycleListener(VariableInstanceLifecycleListener<VariableInstanceEntity> customLifecycleListener)
public VariableInstanceLifecycleListener<VariableInstanceEntity> removeCustomLifecycleListener(VariableInstanceLifecycleListener<VariableInstanceEntity> customLifecycleListener)
public void dispatchEvent(VariableEvent variableEvent)
dispatchEvent
in interface VariableEventDispatcher
dispatchEvent
in class AbstractVariableScope
public Collection<VariableInstanceEntity> provideVariables()
provideVariables
in interface VariableStore.VariablesProvider<VariableInstanceEntity>
public Collection<VariableInstanceEntity> provideVariables(Collection<String> variableNames)
provideVariables
in interface VariableStore.VariablesProvider<VariableInstanceEntity>
public AbstractVariableScope getParentVariableScope()
getParentVariableScope
in class AbstractVariableScope
public String getVariableScopeKey()
getVariableScopeKey
in interface VariableScope
getVariableScopeKey
in class AbstractVariableScope
public TaskEntity getParentTask()
public ExecutionEntity getExecution()
DelegateTask
getExecution
in interface DelegateTask
public void setExecution(PvmExecutionImpl execution)
public CaseExecutionEntity getCaseExecution()
DelegateTask
getCaseExecution
in interface DelegateTask
protected void ensureCaseExecutionInitialized()
public void setCaseExecution(CaseExecutionEntity caseExecution)
public String getCaseExecutionId()
Task
getCaseExecutionId
in interface DelegateTask
getCaseExecutionId
in interface Task
public void setCaseExecutionId(String caseExecutionId)
public String getCaseInstanceId()
Task
getCaseInstanceId
in interface DelegateTask
getCaseInstanceId
in interface Task
public void setCaseInstanceId(String caseInstanceId)
Task
setCaseInstanceId
in interface Task
public CaseDefinitionEntity getCaseDefinition()
public String getCaseDefinitionId()
Task
getCaseDefinitionId
in interface DelegateTask
getCaseDefinitionId
in interface Task
public void setCaseDefinitionId(String caseDefinitionId)
public IdentityLinkEntity addIdentityLink(String userId, String groupId, String type)
public void fireIdentityLinkHistoryEvents(String userId, String groupId, String type, HistoryEventTypes historyEventType)
public IdentityLinkEntity newIdentityLink(String userId, String groupId, String type)
public void deleteIdentityLinks()
public Set<IdentityLink> getCandidates()
DelegateTask
getCandidates
in interface DelegateTask
IdentityLink
s of type IdentityLinkType.CANDIDATE
.public void addCandidateUser(String userId)
DelegateTask
addCandidateUser
in interface DelegateTask
public void addCandidateUsers(Collection<String> candidateUsers)
DelegateTask
addCandidateUsers
in interface DelegateTask
public void addCandidateGroup(String groupId)
DelegateTask
addCandidateGroup
in interface DelegateTask
public void addCandidateGroups(Collection<String> candidateGroups)
DelegateTask
addCandidateGroups
in interface DelegateTask
public void addGroupIdentityLink(String groupId, String identityLinkType)
DelegateTask
addGroupIdentityLink
in interface DelegateTask
groupId
- id of the group to involve, cannot be null.identityLinkType
- type of identity, cannot be null (@see IdentityLinkType
).public void addUserIdentityLink(String userId, String identityLinkType)
DelegateTask
addUserIdentityLink
in interface DelegateTask
userId
- id of the user involve, cannot be null.identityLinkType
- type of identityLink, cannot be null (@see IdentityLinkType
).public void deleteCandidateGroup(String groupId)
DelegateTask
#deleteGroupIdentityLink(String, String, String)
; with type IdentityLinkType.CANDIDATE
deleteCandidateGroup
in interface DelegateTask
groupId
- id of the group to use as candidate, cannot be null.public void deleteCandidateUser(String userId)
DelegateTask
DelegateTask.deleteUserIdentityLink(String, String)
; with type IdentityLinkType.CANDIDATE
deleteCandidateUser
in interface DelegateTask
userId
- id of the user to use as candidate, cannot be null.public void deleteGroupIdentityLink(String groupId, String identityLinkType)
DelegateTask
deleteGroupIdentityLink
in interface DelegateTask
groupId
- id of the group to involve, cannot be null.identityLinkType
- type of identity, cannot be null (@see IdentityLinkType
).public void deleteUserIdentityLink(String userId, String identityLinkType)
DelegateTask
deleteUserIdentityLink
in interface DelegateTask
userId
- id of the user involve, cannot be null.identityLinkType
- type of identityLink, cannot be null (@see IdentityLinkType
).public List<IdentityLinkEntity> getIdentityLinks()
public void setName(String taskName)
Task
setName
in interface DelegateTask
setName
in interface Task
public void setDescription(String description)
Task
setDescription
in interface DelegateTask
setDescription
in interface Task
public void setAssignee(String assignee)
Task
setAssignee
in interface DelegateTask
setAssignee
in interface Task
public void setOwner(String owner)
Task
userId
of the person that is responsible for this task.
This is used when a task is delegated
.setOwner
in interface DelegateTask
setOwner
in interface Task
public void setDueDate(Date dueDate)
Task
setDueDate
in interface DelegateTask
setDueDate
in interface Task
public void setPriority(int priority)
Task
setPriority
in interface DelegateTask
setPriority
in interface Task
public void setParentTaskId(String parentTaskId)
Task
setParentTaskId
in interface Task
public void setNameWithoutCascade(String taskName)
public void setDescriptionWithoutCascade(String description)
public void setAssigneeWithoutCascade(String assignee)
public void setOwnerWithoutCascade(String owner)
public void setDueDateWithoutCascade(Date dueDate)
public void setPriorityWithoutCascade(int priority)
public void setCaseInstanceIdWithoutCascade(String caseInstanceId)
public void setParentTaskIdWithoutCascade(String parentTaskId)
public void setTaskDefinitionKeyWithoutCascade(String taskDefinitionKey)
public void setDelegationStateWithoutCascade(DelegationState delegationState)
public void setDelegationStateString(String delegationState)
delegationState
- the delegation state as stringpublic void setFollowUpDateWithoutCascade(Date followUpDate)
public boolean fireEvent(String taskEventName)
protected List<TaskListener> getListenersForEvent(String event)
protected TaskListener getTimeoutListener(String timeoutId)
protected boolean invokeListener(String taskEventName, TaskListener taskListener)
protected boolean invokeListener(CoreExecution currentExecution, String eventName, TaskListener taskListener) throws Exception
Exception
protected void propertyChanged(String propertyName, Object orgValue, Object newValue)
propertyName
- orgValue
- newValue
- public void fireAuthorizationProvider()
public boolean transitionTo(TaskEntity.TaskState state)
public boolean triggerUpdateEvent()
public boolean triggerTimeoutEvent(String timeoutId)
protected boolean fireAssignmentEvent()
protected void fireAssigneeAuthorizationProvider(String oldAssignee, String newAssignee)
protected void fireOwnerAuthorizationProvider(String oldOwner, String newOwner)
protected void fireAuthorizationProvider(String property, String oldValue, String newValue)
protected void fireAddIdentityLinkAuthorizationProvider(String type, String userId, String groupId)
protected void fireDeleteIdentityLinkAuthorizationProvider(String type, String userId, String groupId)
protected ResourceAuthorizationProvider getResourceAuthorizationProvider()
protected void saveAuthorizations(AuthorizationEntity[] authorizations)
protected void deleteAuthorizations(AuthorizationEntity[] authorizations)
protected boolean isAuthorizationEnabled()
public void setTaskDefinition(TaskDefinition taskDefinition)
public TaskDefinition getTaskDefinition()
public int getRevision()
getRevision
in interface HasDbRevision
public void setRevision(int revision)
setRevision
in interface HasDbRevision
public String getName()
Task
getName
in interface DelegateTask
getName
in interface Task
public String getDescription()
Task
getDescription
in interface DelegateTask
getDescription
in interface Task
public Date getDueDate()
Task
getDueDate
in interface DelegateTask
getDueDate
in interface Task
public int getPriority()
Task
getPriority
in interface DelegateTask
getPriority
in interface Task
public Date getCreateTime()
Task
getCreateTime
in interface DelegateTask
getCreateTime
in interface Task
public void setCreateTime(Date createTime)
public String getExecutionId()
Task
getExecutionId
in interface DelegateTask
getExecutionId
in interface Task
public String getProcessInstanceId()
Task
getProcessInstanceId
in interface DelegateTask
getProcessInstanceId
in interface Task
public boolean isStandaloneTask()
public ProcessDefinitionEntity getProcessDefinition()
public String getProcessDefinitionId()
Task
getProcessDefinitionId
in interface DelegateTask
getProcessDefinitionId
in interface Task
public void initializeFormKey()
public String getFormKey()
Task
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
.
getFormKey
in interface Task
public void setProcessDefinitionId(String processDefinitionId)
public String getAssignee()
Task
getAssignee
in interface DelegateTask
getAssignee
in interface Task
public String getTaskDefinitionKey()
Task
getTaskDefinitionKey
in interface DelegateTask
getTaskDefinitionKey
in interface Task
public void setTaskDefinitionKey(String taskDefinitionKey)
public String getEventName()
DelegateTask
getEventName
in interface DelegateTask
public void setEventName(String eventName)
public void setExecutionId(String executionId)
public ExecutionEntity getProcessInstance()
public void setProcessInstance(ExecutionEntity processInstance)
public void setProcessInstanceId(String processInstanceId)
public String getOwner()
Task
userId
of the person that is responsible for this task.
This is used when a task is delegated
.getOwner
in interface DelegateTask
getOwner
in interface Task
public DelegationState getDelegationState()
Task
DelegationState
for this task.getDelegationState
in interface Task
public void setDelegationState(DelegationState delegationState)
Task
DelegationState
for this task.setDelegationState
in interface Task
public String getDelegationStateString()
public boolean isDeleted()
public String getDeleteReason()
DelegateTask
getDeleteReason
in interface DelegateTask
public void setDeleted(boolean isDeleted)
public String getParentTaskId()
Task
getParentTaskId
in interface Task
public int getSuspensionState()
public void setSuspensionState(int suspensionState)
public boolean isSuspended()
Task
isSuspended
in interface Task
public Date getFollowUpDate()
Task
getFollowUpDate
in interface DelegateTask
getFollowUpDate
in interface Task
public String getTenantId()
Task
getTenantId
in interface DelegateTask
getTenantId
in interface Task
public void setTenantId(String tenantId)
Task
setTenantId
in interface Task
tenantId
- the tenant id to setpublic void setFollowUpDate(Date followUpDate)
Task
setFollowUpDate
in interface DelegateTask
setFollowUpDate
in interface Task
public Collection<VariableInstanceEntity> getVariablesInternal()
public void onCommandContextClose(CommandContext commandContext)
onCommandContextClose
in interface CommandContextListener
public void onCommandFailed(CommandContext commandContext, Throwable t)
onCommandFailed
in interface CommandContextListener
protected void registerCommandContextCloseListener()
public Map<String,PropertyChange> getPropertyChanges()
public void logUserOperation(String operation)
public void fireHistoricIdentityLinks()
public ProcessEngineServices getProcessEngineServices()
ProcessEngineServicesAware
ProcessEngineServices
providing access to the
public API of the process engine.getProcessEngineServices
in interface ProcessEngineServicesAware
ProcessEngineServices
.public ProcessEngine getProcessEngine()
ProcessEngineServicesAware
ProcessEngine
providing access to the
public API of the process engine.getProcessEngine
in interface ProcessEngineServicesAware
ProcessEngine
.public void executeMetrics(String metricsName)
public void addIdentityLinkChanges(String type, String oldProperty, String newProperty)
public void setVariablesLocal(Map<String,?> variables, boolean skipJavaSerializationFormatCheck)
setVariablesLocal
in class AbstractVariableScope
public Set<String> getReferencedEntityIds()
HasDbReferences
Scope: IN-MEMORY references
getReferencedEntityIds
in interface HasDbReferences
public Map<String,Class> getReferencedEntitiesIdAndClass()
HasDbReferences
Scope: IN-MEMORY references
getReferencedEntitiesIdAndClass
in interface HasDbReferences
public void bpmnError(String errorCode, String errorMessage, Map<String,Object> variables)
Copyright © 2022. All rights reserved.