public class ExecutionEntityImpl extends VariableScopeImpl implements ExecutionEntity
| Modifier and Type | Field and Description |
|---|---|
protected String |
activityId
persisted reference to the current position in the diagram within the
#processDefinition. |
protected String |
activityName
The name of the current activity position
|
protected String |
businessKey
persisted reference to the business key.
|
protected int |
cachedEntityState |
protected org.activiti.bpmn.model.FlowElement |
currentFlowElement |
protected String |
deleteReason |
protected String |
deploymentId
persisted reference to the deployment id.
|
protected String |
description |
protected String |
eventName |
protected List<EventSubscriptionEntity> |
eventSubscriptions |
protected List<ExecutionEntityImpl> |
executions
nested executions representing scopes or concurrent paths
|
protected boolean |
forcedUpdate |
protected List<IdentityLinkEntity> |
identityLinks |
protected boolean |
isActive |
protected boolean |
isConcurrent |
protected boolean |
isDeleted |
protected boolean |
isEnded |
protected boolean |
isEventScope |
protected boolean |
isMultiInstanceRoot |
protected boolean |
isScope |
protected List<JobEntity> |
jobs |
protected String |
localizedDescription |
protected String |
localizedName |
protected Date |
lockTime |
protected String |
name |
protected ExecutionEntityImpl |
parent
the parent execution
|
protected String |
parentId
persisted reference to the parent of this execution.
|
protected String |
processDefinitionId
persisted reference to the processDefinition.
|
protected String |
processDefinitionKey
persisted reference to the process definition key.
|
protected String |
processDefinitionName
persisted reference to the process definition name.
|
protected Integer |
processDefinitionVersion
persisted reference to the process definition version.
|
protected ExecutionEntityImpl |
processInstance
the process instance.
|
protected String |
processInstanceId
persisted reference to the process instance.
|
protected List<VariableInstanceEntity> |
queryVariables |
protected int |
revision |
protected String |
rootProcessInstanceId |
protected ExecutionEntityImpl |
subProcessInstance
reference to a subprocessinstance, not-null if currently subprocess is started from this execution
|
protected ExecutionEntityImpl |
superExecution
super execution, not-null if this execution is part of a subprocess
|
protected String |
superExecutionId
persisted reference to the super execution of this execution
|
protected int |
suspensionState |
protected List<TaskEntity> |
tasks |
protected String |
tenantId
The tenant identifier (if any)
|
cachedElContext, id, usedVariablesCache, variableInstances| Constructor and Description |
|---|
ExecutionEntityImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChildExecution(ExecutionEntity executionEntity) |
protected VariableInstanceEntity |
createVariableInstance(String variableName,
Object value,
ExecutionEntity sourceActivityExecution) |
protected void |
ensureEventSubscriptionsInitialized() |
protected void |
ensureExecutionsInitialized() |
protected void |
ensureIdentityLinksInitialized() |
protected void |
ensureJobsInitialized() |
protected void |
ensureParentInitialized() |
protected void |
ensureProcessInstanceInitialized() |
protected void |
ensureSubProcessInstanceInitialized() |
protected void |
ensureSuperExecutionInitialized() |
protected void |
ensureTasksInitialized() |
void |
forceUpdate() |
String |
getActivityId()
Returns the id of the activity where the execution currently is at.
|
String |
getActivityName() |
String |
getBusinessKey()
The business key of this process instance.
|
int |
getCachedEntityState() |
String |
getCurrentActivityId()
Gets the id of the current activity.
|
org.activiti.bpmn.model.FlowElement |
getCurrentFlowElement()
The BPMN element where the execution currently is at.
|
String |
getDeleteReason() |
String |
getDeploymentId()
The deployment id of the process definition of the process instance.
|
String |
getDescription()
Returns the description of this execution.
|
String |
getEventName()
Will contain the event name in case this execution is passed in for an
ExecutionListener. |
List<EventSubscriptionEntity> |
getEventSubscriptions() |
List<ExecutionEntityImpl> |
getExecutions()
ensures initialization and returns the non-null executions list
|
String |
getId()
Unique id of this path of execution that can be used as a handle to provide external signals back into the engine after wait states.
|
List<IdentityLinkEntity> |
getIdentityLinks() |
List<JobEntity> |
getJobs() |
String |
getLocalizedDescription()
Returns the localized description of this process instance.
|
String |
getLocalizedName()
Returns the localized name of this process instance.
|
Date |
getLockTime() |
String |
getName()
Returns the name of this execution.
|
ExecutionEntityImpl |
getParent()
ensures initialization and returns the parent
|
String |
getParentId()
Gets the id of the parent of this execution.
|
protected VariableScopeImpl |
getParentVariableScope() |
Object |
getPersistentState()
Returns a representation of the object, as would be stored in the database.
|
String |
getProcessDefinitionId()
The process definition key for the process instance this execution is associated with.
|
String |
getProcessDefinitionKey()
The key of the process definition of the process instance.
|
String |
getProcessDefinitionName()
The name of the process definition of the process instance.
|
Integer |
getProcessDefinitionVersion()
The version of the process definition of the process instance.
|
ExecutionEntityImpl |
getProcessInstance()
ensures initialization and returns the process instance.
|
String |
getProcessInstanceBusinessKey()
The business key for the process instance this execution is associated with.
|
String |
getProcessInstanceId()
Reference to the overall process instance
|
Map<String,Object> |
getProcessVariables()
Returns the process variables if requested in the process instance query
|
List<VariableInstanceEntity> |
getQueryVariables() |
int |
getRevision() |
int |
getRevisionNext() |
String |
getRootProcessInstanceId()
The 'root' process instance.
|
protected ExecutionEntityImpl |
getSourceActivityExecution()
used to calculate the sourceActivityExecution for method
#updateActivityInstanceIdInHistoricVariableUpdate(HistoricDetailVariableInstanceUpdateEntity, ExecutionEntityImpl) |
protected VariableInstanceEntity |
getSpecificVariable(String variableName) |
protected List<VariableInstanceEntity> |
getSpecificVariables(Collection<String> variableNames) |
ExecutionEntityImpl |
getSubProcessInstance() |
ExecutionEntityImpl |
getSuperExecution() |
String |
getSuperExecutionId()
Gets the id of the calling execution.
|
int |
getSuspensionState() |
List<TaskEntity> |
getTasks() |
String |
getTenantId()
Returns the tenant id, if any is set before on the process definition or process instance.
|
void |
inactivate()
Inactivates this execution.
|
protected void |
initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance) |
boolean |
isActive()
returns whether this execution is currently active.
|
boolean |
isConcurrent()
returns whether this execution is concurrent or not.
|
boolean |
isDeleted() |
boolean |
isEnded()
returns whether this execution has ended or not.
|
boolean |
isEventScope() |
boolean |
isMultiInstanceRoot()
Returns whather this execution is the root of a multi instance execution.
|
boolean |
isProcessInstanceType()
returns whether this execution is a process instance or not.
|
boolean |
isScope()
Returns whether this execution is a scope.
|
boolean |
isSuspended()
Indicates if the execution is suspended.
|
protected Collection<VariableInstanceEntity> |
loadVariableInstances() |
void |
setActive(boolean isActive)
makes this execution active or inactive.
|
void |
setBusinessKey(String businessKey) |
void |
setConcurrent(boolean isConcurrent)
changes the concurrent indicator on this execution.
|
void |
setCurrentFlowElement(org.activiti.bpmn.model.FlowElement currentFlowElement)
Change the current BPMN element the execution is at.
|
void |
setDeleted(boolean isDeleted) |
void |
setDeleteReason(String deleteReason) |
void |
setDeploymentId(String deploymentId) |
void |
setDescription(String description) |
void |
setEnded(boolean isEnded) |
void |
setEventName(String eventName) |
void |
setEventScope(boolean isEventScope) |
void |
setId(String id) |
void |
setLocalizedDescription(String localizedDescription) |
void |
setLocalizedName(String localizedName) |
void |
setLockTime(Date lockTime) |
void |
setMultiInstanceRoot(boolean isMultiInstanceRoot)
Changes whether this execution is a multi instance root or not.
|
void |
setName(String name) |
void |
setParent(ExecutionEntity parent) |
void |
setParentId(String parentId) |
void |
setProcessDefinitionId(String processDefinitionId) |
void |
setProcessDefinitionKey(String processDefinitionKey) |
void |
setProcessDefinitionName(String processDefinitionName) |
void |
setProcessDefinitionVersion(Integer processDefinitionVersion) |
void |
setProcessInstance(ExecutionEntity processInstance) |
void |
setProcessInstanceId(String processInstanceId) |
void |
setQueryVariables(List<VariableInstanceEntity> queryVariables) |
void |
setRevision(int revision) |
void |
setRootProcessInstanceId(String rootProcessInstanceId) |
void |
setScope(boolean isScope)
Changes whether this execution is a scope or not.
|
void |
setSubProcessInstance(ExecutionEntity subProcessInstance) |
void |
setSuperExecution(ExecutionEntity superExecution) |
void |
setSuspensionState(int suspensionState) |
void |
setTenantId(String tenantId) |
String |
toString() |
protected void |
updateVariableInstance(VariableInstanceEntity variableInstance,
Object value,
ExecutionEntity sourceActivityExecution) |
collectVariableNames, collectVariables, createVariableLocal, createVariableLocal, createVariablesLocal, deleteVariableInstanceForExplicitUserCall, deleteVariablesInstanceForLeavingScope, ensureVariableInstancesInitialized, getCachedElContext, getUsedVariablesCache, getVariable, getVariable, getVariable, getVariableInstances, getVariableLocal, getVariableLocal, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariables, getVariables, getVariablesLocal, getVariablesLocal, getVariablesLocal, getVariableValues, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, isActivityIdUsedForDetails, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setVariable, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariableLocal, setVariables, setVariablesLocalclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateVariableLocal, getVariable, getVariable, getVariable, getVariableLocal, getVariableLocal, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariables, getVariables, getVariablesLocal, getVariablesLocal, getVariablesLocal, getVariableValues, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariables, setVariablesLocalprotected org.activiti.bpmn.model.FlowElement currentFlowElement
protected ExecutionEntityImpl processInstance
protected ExecutionEntityImpl parent
protected List<ExecutionEntityImpl> executions
protected ExecutionEntityImpl superExecution
protected ExecutionEntityImpl subProcessInstance
protected String tenantId
protected String name
protected String description
protected String localizedName
protected String localizedDescription
protected Date lockTime
protected boolean isActive
protected boolean isScope
protected boolean isConcurrent
protected boolean isEnded
protected boolean isEventScope
protected boolean isMultiInstanceRoot
protected String eventName
protected List<EventSubscriptionEntity> eventSubscriptions
protected List<TaskEntity> tasks
protected List<IdentityLinkEntity> identityLinks
protected int cachedEntityState
protected String deleteReason
protected int revision
protected int suspensionState
protected String processDefinitionId
#processDefinition,
#setProcessDefinition(ProcessDefinitionImpl),
#getProcessDefinition()protected String processDefinitionKey
protected String processDefinitionName
protected Integer processDefinitionVersion
protected String deploymentId
protected String activityId
#processDefinition.#activity,
#setActivity(ActivityImpl),
#getActivity()protected String activityName
protected String processInstanceId
getProcessInstance()protected String businessKey
protected String parentId
getParent(),
setParentId(String)protected String superExecutionId
#setSuperExecution(ExecutionEntityImpl)protected String rootProcessInstanceId
protected boolean forcedUpdate
protected List<VariableInstanceEntity> queryVariables
protected boolean isDeleted
public Object getPersistentState()
EntitygetPersistentState in interface Entitypublic org.activiti.bpmn.model.FlowElement getCurrentFlowElement()
DelegateExecutiongetCurrentFlowElement in interface DelegateExecutionpublic void setCurrentFlowElement(org.activiti.bpmn.model.FlowElement currentFlowElement)
DelegateExecutionsetCurrentFlowElement in interface DelegateExecutionpublic List<ExecutionEntityImpl> getExecutions()
getExecutions in interface DelegateExecutiongetExecutions in interface ExecutionEntitypublic void addChildExecution(ExecutionEntity executionEntity)
addChildExecution in interface ExecutionEntityprotected void ensureExecutionsInitialized()
public String getBusinessKey()
ProcessInstancegetBusinessKey in interface ProcessInstancepublic void setBusinessKey(String businessKey)
setBusinessKey in interface ExecutionEntitypublic String getProcessInstanceBusinessKey()
DelegateExecutiongetProcessInstanceBusinessKey in interface DelegateExecutionpublic void setProcessDefinitionId(String processDefinitionId)
setProcessDefinitionId in interface ExecutionEntitypublic String getProcessDefinitionId()
DelegateExecutiongetProcessDefinitionId in interface DelegateExecutiongetProcessDefinitionId in interface ProcessInstancepublic String getProcessDefinitionKey()
ProcessInstancegetProcessDefinitionKey in interface ProcessInstancepublic void setProcessDefinitionKey(String processDefinitionKey)
setProcessDefinitionKey in interface ExecutionEntitypublic String getProcessDefinitionName()
ProcessInstancegetProcessDefinitionName in interface ProcessInstancepublic void setProcessDefinitionName(String processDefinitionName)
setProcessDefinitionName in interface ExecutionEntitypublic Integer getProcessDefinitionVersion()
ProcessInstancegetProcessDefinitionVersion in interface ProcessInstancepublic void setProcessDefinitionVersion(Integer processDefinitionVersion)
setProcessDefinitionVersion in interface ExecutionEntitypublic String getDeploymentId()
ProcessInstancegetDeploymentId in interface ProcessInstancepublic void setDeploymentId(String deploymentId)
setDeploymentId in interface ExecutionEntitypublic ExecutionEntityImpl getProcessInstance()
getProcessInstance in interface ExecutionEntityprotected void ensureProcessInstanceInitialized()
public void setProcessInstance(ExecutionEntity processInstance)
setProcessInstance in interface ExecutionEntitypublic boolean isProcessInstanceType()
DelegateExecutionisProcessInstanceType in interface DelegateExecutionpublic ExecutionEntityImpl getParent()
getParent in interface DelegateExecutiongetParent in interface ExecutionEntityprotected void ensureParentInitialized()
public void setParent(ExecutionEntity parent)
setParent in interface ExecutionEntitypublic String getSuperExecutionId()
DelegateExecutiongetSuperExecutionId in interface DelegateExecutionpublic ExecutionEntityImpl getSuperExecution()
getSuperExecution in interface ExecutionEntitypublic void setSuperExecution(ExecutionEntity superExecution)
setSuperExecution in interface ExecutionEntityprotected void ensureSuperExecutionInitialized()
public ExecutionEntityImpl getSubProcessInstance()
getSubProcessInstance in interface ExecutionEntitypublic void setSubProcessInstance(ExecutionEntity subProcessInstance)
setSubProcessInstance in interface ExecutionEntityprotected void ensureSubProcessInstanceInitialized()
public String getRootProcessInstanceId()
DelegateExecutiongetRootProcessInstanceId in interface DelegateExecutionpublic void setRootProcessInstanceId(String rootProcessInstanceId)
setRootProcessInstanceId in interface ExecutionEntitypublic boolean isScope()
DelegateExecutionisScope in interface DelegateExecutionpublic void setScope(boolean isScope)
DelegateExecutionsetScope in interface DelegateExecutionpublic int getRevisionNext()
getRevisionNext in interface HasRevisionpublic void forceUpdate()
forceUpdate in interface ExecutionEntityprotected void initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
initializeVariableInstanceBackPointer in class VariableScopeImplprotected Collection<VariableInstanceEntity> loadVariableInstances()
loadVariableInstances in class VariableScopeImplprotected VariableScopeImpl getParentVariableScope()
getParentVariableScope in class VariableScopeImplprotected ExecutionEntityImpl getSourceActivityExecution()
#updateActivityInstanceIdInHistoricVariableUpdate(HistoricDetailVariableInstanceUpdateEntity, ExecutionEntityImpl)getSourceActivityExecution in class VariableScopeImplprotected VariableInstanceEntity createVariableInstance(String variableName, Object value, ExecutionEntity sourceActivityExecution)
createVariableInstance in class VariableScopeImplprotected void updateVariableInstance(VariableInstanceEntity variableInstance, Object value, ExecutionEntity sourceActivityExecution)
updateVariableInstance in class VariableScopeImplprotected VariableInstanceEntity getSpecificVariable(String variableName)
getSpecificVariable in class VariableScopeImplprotected List<VariableInstanceEntity> getSpecificVariables(Collection<String> variableNames)
getSpecificVariables in class VariableScopeImplpublic List<EventSubscriptionEntity> getEventSubscriptions()
getEventSubscriptions in interface ExecutionEntityprotected void ensureEventSubscriptionsInitialized()
public List<JobEntity> getJobs()
getJobs in interface ExecutionEntityprotected void ensureJobsInitialized()
protected void ensureTasksInitialized()
public List<TaskEntity> getTasks()
getTasks in interface ExecutionEntitypublic List<IdentityLinkEntity> getIdentityLinks()
getIdentityLinks in interface ExecutionEntityprotected void ensureIdentityLinksInitialized()
public String getProcessInstanceId()
DelegateExecutiongetProcessInstanceId in interface DelegateExecutiongetProcessInstanceId in interface Executionpublic void setProcessInstanceId(String processInstanceId)
setProcessInstanceId in interface ExecutionEntitypublic String getParentId()
DelegateExecutiongetParentId in interface DelegateExecutiongetParentId in interface Executionpublic void setParentId(String parentId)
setParentId in interface ExecutionEntitypublic String getId()
DelegateExecutiongetId in interface DelegateExecutiongetId in interface EntitygetId in interface ExecutiongetId in class VariableScopeImplpublic void setId(String id)
setId in interface EntitysetId in class VariableScopeImplpublic int getRevision()
getRevision in interface HasRevisionpublic void setRevision(int revision)
setRevision in interface HasRevisionpublic String getActivityId()
ExecutiongetActivityId in interface Executionpublic boolean isConcurrent()
DelegateExecutionisConcurrent in interface DelegateExecutionpublic void setConcurrent(boolean isConcurrent)
DelegateExecutionsetConcurrent in interface DelegateExecutionpublic boolean isActive()
DelegateExecutionisActive in interface DelegateExecutionpublic void setActive(boolean isActive)
DelegateExecutionsetActive in interface DelegateExecutionpublic void inactivate()
DelegateExecutioninactivate in interface DelegateExecutionpublic boolean isEnded()
DelegateExecutionisEnded in interface DelegateExecutionisEnded in interface Executionpublic void setEnded(boolean isEnded)
setEnded in interface ExecutionEntitypublic String getEventName()
DelegateExecutionExecutionListener.getEventName in interface DelegateExecutionpublic void setEventName(String eventName)
setEventName in interface ExecutionEntitypublic String getDeleteReason()
getDeleteReason in interface ExecutionEntitypublic void setDeleteReason(String deleteReason)
setDeleteReason in interface ExecutionEntitypublic int getSuspensionState()
getSuspensionState in interface ExecutionEntitypublic void setSuspensionState(int suspensionState)
setSuspensionState in interface ExecutionEntitypublic boolean isSuspended()
ExecutionisSuspended in interface ExecutionisSuspended in interface ProcessInstancepublic boolean isEventScope()
isEventScope in interface ExecutionEntitypublic void setEventScope(boolean isEventScope)
setEventScope in interface ExecutionEntitypublic boolean isMultiInstanceRoot()
DelegateExecutionisMultiInstanceRoot in interface DelegateExecutionisMultiInstanceRoot in interface ExecutionEntitypublic void setMultiInstanceRoot(boolean isMultiInstanceRoot)
DelegateExecutionsetMultiInstanceRoot in interface DelegateExecutionsetMultiInstanceRoot in interface ExecutionEntitypublic String getCurrentActivityId()
DelegateExecutiongetCurrentActivityId in interface DelegateExecutionpublic String getName()
ExecutiongetName in interface ExecutiongetName in interface ProcessInstancepublic void setName(String name)
setName in interface ExecutionEntitypublic String getDescription()
ExecutiongetDescription in interface ExecutiongetDescription in interface ProcessInstancepublic void setDescription(String description)
setDescription in interface ExecutionEntitypublic String getLocalizedName()
ProcessInstancegetLocalizedName in interface ProcessInstancepublic void setLocalizedName(String localizedName)
setLocalizedName in interface ExecutionEntitypublic String getLocalizedDescription()
ProcessInstancegetLocalizedDescription in interface ProcessInstancepublic void setLocalizedDescription(String localizedDescription)
setLocalizedDescription in interface ExecutionEntitypublic String getTenantId()
DelegateExecutiongetTenantId in interface DelegateExecutiongetTenantId in interface ExecutiongetTenantId in interface ProcessInstancepublic void setTenantId(String tenantId)
setTenantId in interface ExecutionEntitypublic Date getLockTime()
getLockTime in interface ExecutionEntitypublic void setLockTime(Date lockTime)
setLockTime in interface ExecutionEntitypublic Map<String,Object> getProcessVariables()
ProcessInstancegetProcessVariables in interface ProcessInstancepublic List<VariableInstanceEntity> getQueryVariables()
public void setQueryVariables(List<VariableInstanceEntity> queryVariables)
public boolean isDeleted()
isDeleted in interface ExecutionEntitypublic void setDeleted(boolean isDeleted)
setDeleted in interface ExecutionEntitypublic int getCachedEntityState()
public String getActivityName()
Copyright © 2015 Alfresco. All rights reserved.