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, setVariablesLocal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createVariableLocal, 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, setVariablesLocal
protected 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()
Entity
getPersistentState
in interface Entity
public org.activiti.bpmn.model.FlowElement getCurrentFlowElement()
DelegateExecution
getCurrentFlowElement
in interface DelegateExecution
public void setCurrentFlowElement(org.activiti.bpmn.model.FlowElement currentFlowElement)
DelegateExecution
setCurrentFlowElement
in interface DelegateExecution
public List<ExecutionEntityImpl> getExecutions()
getExecutions
in interface DelegateExecution
getExecutions
in interface ExecutionEntity
public void addChildExecution(ExecutionEntity executionEntity)
addChildExecution
in interface ExecutionEntity
protected void ensureExecutionsInitialized()
public String getBusinessKey()
ProcessInstance
getBusinessKey
in interface ProcessInstance
public void setBusinessKey(String businessKey)
setBusinessKey
in interface ExecutionEntity
public String getProcessInstanceBusinessKey()
DelegateExecution
getProcessInstanceBusinessKey
in interface DelegateExecution
public void setProcessDefinitionId(String processDefinitionId)
setProcessDefinitionId
in interface ExecutionEntity
public String getProcessDefinitionId()
DelegateExecution
getProcessDefinitionId
in interface DelegateExecution
getProcessDefinitionId
in interface ProcessInstance
public String getProcessDefinitionKey()
ProcessInstance
getProcessDefinitionKey
in interface ProcessInstance
public void setProcessDefinitionKey(String processDefinitionKey)
setProcessDefinitionKey
in interface ExecutionEntity
public String getProcessDefinitionName()
ProcessInstance
getProcessDefinitionName
in interface ProcessInstance
public void setProcessDefinitionName(String processDefinitionName)
setProcessDefinitionName
in interface ExecutionEntity
public Integer getProcessDefinitionVersion()
ProcessInstance
getProcessDefinitionVersion
in interface ProcessInstance
public void setProcessDefinitionVersion(Integer processDefinitionVersion)
setProcessDefinitionVersion
in interface ExecutionEntity
public String getDeploymentId()
ProcessInstance
getDeploymentId
in interface ProcessInstance
public void setDeploymentId(String deploymentId)
setDeploymentId
in interface ExecutionEntity
public ExecutionEntityImpl getProcessInstance()
getProcessInstance
in interface ExecutionEntity
protected void ensureProcessInstanceInitialized()
public void setProcessInstance(ExecutionEntity processInstance)
setProcessInstance
in interface ExecutionEntity
public boolean isProcessInstanceType()
DelegateExecution
isProcessInstanceType
in interface DelegateExecution
public ExecutionEntityImpl getParent()
getParent
in interface DelegateExecution
getParent
in interface ExecutionEntity
protected void ensureParentInitialized()
public void setParent(ExecutionEntity parent)
setParent
in interface ExecutionEntity
public String getSuperExecutionId()
DelegateExecution
getSuperExecutionId
in interface DelegateExecution
public ExecutionEntityImpl getSuperExecution()
getSuperExecution
in interface ExecutionEntity
public void setSuperExecution(ExecutionEntity superExecution)
setSuperExecution
in interface ExecutionEntity
protected void ensureSuperExecutionInitialized()
public ExecutionEntityImpl getSubProcessInstance()
getSubProcessInstance
in interface ExecutionEntity
public void setSubProcessInstance(ExecutionEntity subProcessInstance)
setSubProcessInstance
in interface ExecutionEntity
protected void ensureSubProcessInstanceInitialized()
public String getRootProcessInstanceId()
DelegateExecution
getRootProcessInstanceId
in interface DelegateExecution
public void setRootProcessInstanceId(String rootProcessInstanceId)
setRootProcessInstanceId
in interface ExecutionEntity
public boolean isScope()
DelegateExecution
isScope
in interface DelegateExecution
public void setScope(boolean isScope)
DelegateExecution
setScope
in interface DelegateExecution
public int getRevisionNext()
getRevisionNext
in interface HasRevision
public void forceUpdate()
forceUpdate
in interface ExecutionEntity
protected void initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
initializeVariableInstanceBackPointer
in class VariableScopeImpl
protected Collection<VariableInstanceEntity> loadVariableInstances()
loadVariableInstances
in class VariableScopeImpl
protected VariableScopeImpl getParentVariableScope()
getParentVariableScope
in class VariableScopeImpl
protected ExecutionEntityImpl getSourceActivityExecution()
#updateActivityInstanceIdInHistoricVariableUpdate(HistoricDetailVariableInstanceUpdateEntity, ExecutionEntityImpl)
getSourceActivityExecution
in class VariableScopeImpl
protected VariableInstanceEntity createVariableInstance(String variableName, Object value, ExecutionEntity sourceActivityExecution)
createVariableInstance
in class VariableScopeImpl
protected void updateVariableInstance(VariableInstanceEntity variableInstance, Object value, ExecutionEntity sourceActivityExecution)
updateVariableInstance
in class VariableScopeImpl
protected VariableInstanceEntity getSpecificVariable(String variableName)
getSpecificVariable
in class VariableScopeImpl
protected List<VariableInstanceEntity> getSpecificVariables(Collection<String> variableNames)
getSpecificVariables
in class VariableScopeImpl
public List<EventSubscriptionEntity> getEventSubscriptions()
getEventSubscriptions
in interface ExecutionEntity
protected void ensureEventSubscriptionsInitialized()
public List<JobEntity> getJobs()
getJobs
in interface ExecutionEntity
protected void ensureJobsInitialized()
protected void ensureTasksInitialized()
public List<TaskEntity> getTasks()
getTasks
in interface ExecutionEntity
public List<IdentityLinkEntity> getIdentityLinks()
getIdentityLinks
in interface ExecutionEntity
protected void ensureIdentityLinksInitialized()
public String getProcessInstanceId()
DelegateExecution
getProcessInstanceId
in interface DelegateExecution
getProcessInstanceId
in interface Execution
public void setProcessInstanceId(String processInstanceId)
setProcessInstanceId
in interface ExecutionEntity
public String getParentId()
DelegateExecution
getParentId
in interface DelegateExecution
getParentId
in interface Execution
public void setParentId(String parentId)
setParentId
in interface ExecutionEntity
public String getId()
DelegateExecution
getId
in interface DelegateExecution
getId
in interface Entity
getId
in interface Execution
getId
in class VariableScopeImpl
public void setId(String id)
setId
in interface Entity
setId
in class VariableScopeImpl
public int getRevision()
getRevision
in interface HasRevision
public void setRevision(int revision)
setRevision
in interface HasRevision
public String getActivityId()
Execution
getActivityId
in interface Execution
public boolean isConcurrent()
DelegateExecution
isConcurrent
in interface DelegateExecution
public void setConcurrent(boolean isConcurrent)
DelegateExecution
setConcurrent
in interface DelegateExecution
public boolean isActive()
DelegateExecution
isActive
in interface DelegateExecution
public void setActive(boolean isActive)
DelegateExecution
setActive
in interface DelegateExecution
public void inactivate()
DelegateExecution
inactivate
in interface DelegateExecution
public boolean isEnded()
DelegateExecution
isEnded
in interface DelegateExecution
isEnded
in interface Execution
public void setEnded(boolean isEnded)
setEnded
in interface ExecutionEntity
public String getEventName()
DelegateExecution
ExecutionListener
.getEventName
in interface DelegateExecution
public void setEventName(String eventName)
setEventName
in interface ExecutionEntity
public String getDeleteReason()
getDeleteReason
in interface ExecutionEntity
public void setDeleteReason(String deleteReason)
setDeleteReason
in interface ExecutionEntity
public int getSuspensionState()
getSuspensionState
in interface ExecutionEntity
public void setSuspensionState(int suspensionState)
setSuspensionState
in interface ExecutionEntity
public boolean isSuspended()
Execution
isSuspended
in interface Execution
isSuspended
in interface ProcessInstance
public boolean isEventScope()
isEventScope
in interface ExecutionEntity
public void setEventScope(boolean isEventScope)
setEventScope
in interface ExecutionEntity
public boolean isMultiInstanceRoot()
DelegateExecution
isMultiInstanceRoot
in interface DelegateExecution
isMultiInstanceRoot
in interface ExecutionEntity
public void setMultiInstanceRoot(boolean isMultiInstanceRoot)
DelegateExecution
setMultiInstanceRoot
in interface DelegateExecution
setMultiInstanceRoot
in interface ExecutionEntity
public String getCurrentActivityId()
DelegateExecution
getCurrentActivityId
in interface DelegateExecution
public String getName()
Execution
getName
in interface Execution
getName
in interface ProcessInstance
public void setName(String name)
setName
in interface ExecutionEntity
public String getDescription()
Execution
getDescription
in interface Execution
getDescription
in interface ProcessInstance
public void setDescription(String description)
setDescription
in interface ExecutionEntity
public String getLocalizedName()
ProcessInstance
getLocalizedName
in interface ProcessInstance
public void setLocalizedName(String localizedName)
setLocalizedName
in interface ExecutionEntity
public String getLocalizedDescription()
ProcessInstance
getLocalizedDescription
in interface ProcessInstance
public void setLocalizedDescription(String localizedDescription)
setLocalizedDescription
in interface ExecutionEntity
public String getTenantId()
DelegateExecution
getTenantId
in interface DelegateExecution
getTenantId
in interface Execution
getTenantId
in interface ProcessInstance
public void setTenantId(String tenantId)
setTenantId
in interface ExecutionEntity
public Date getLockTime()
getLockTime
in interface ExecutionEntity
public void setLockTime(Date lockTime)
setLockTime
in interface ExecutionEntity
public Map<String,Object> getProcessVariables()
ProcessInstance
getProcessVariables
in interface ProcessInstance
public List<VariableInstanceEntity> getQueryVariables()
public void setQueryVariables(List<VariableInstanceEntity> queryVariables)
public boolean isDeleted()
isDeleted
in interface ExecutionEntity
public void setDeleted(boolean isDeleted)
setDeleted
in interface ExecutionEntity
public int getCachedEntityState()
public String getActivityName()
Copyright © 2015 Alfresco. All rights reserved.