Class ExecutionEntityImpl
- java.lang.Object
-
- org.activiti.engine.impl.persistence.entity.AbstractEntity
-
- org.activiti.engine.impl.persistence.entity.VariableScopeImpl
-
- org.activiti.engine.impl.persistence.entity.ExecutionEntityImpl
-
- All Implemented Interfaces:
java.io.Serializable,DelegateExecution,VariableScope,HasRevision,CountingExecutionEntity,Entity,ExecutionEntity,Execution,ProcessInstance
public class ExecutionEntityImpl extends VariableScopeImpl implements ExecutionEntity, CountingExecutionEntity
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringactivityIdpersisted reference to the current position in the diagram within the#processDefinition.protected java.lang.StringactivityNameThe name of the current activity positionprotected java.lang.StringbusinessKeypersisted reference to the business key.protected org.activiti.bpmn.model.ActivitiListenercurrentActivitiListenerprotected org.activiti.bpmn.model.FlowElementcurrentFlowElementprotected intdeadLetterJobCountprotected java.lang.StringdeleteReasonprotected java.lang.StringdeploymentIdpersisted reference to the deployment id.protected java.lang.Stringdescriptionprotected java.lang.StringeventNameprotected inteventSubscriptionCountprotected java.util.List<EventSubscriptionEntity>eventSubscriptionsprotected java.util.List<ExecutionEntityImpl>executionsnested executions representing scopes or concurrent pathsprotected booleanforcedUpdateprotected intidentityLinkCountprotected java.util.List<IdentityLinkEntity>identityLinksprotected booleanisActiveprotected booleanisConcurrentprotected booleanisCountEnabledprotected booleanisDeletedprotected booleanisEndedprotected booleanisEventScopeprotected booleanisMultiInstanceRootprotected booleanisScopeprotected intjobCountprotected java.util.List<JobEntity>jobsprotected java.lang.StringlocalizedDescriptionprotected java.lang.StringlocalizedNameprotected java.util.DatelockTimeprotected java.lang.Stringnameprotected ExecutionEntityImplparentthe parent executionprotected java.lang.StringparentIdpersisted reference to the parent of this execution.protected java.lang.StringparentProcessInstanceIdprotected java.lang.StringprocessDefinitionIdpersisted reference to the processDefinition.protected java.lang.StringprocessDefinitionKeypersisted reference to the process definition key.protected java.lang.StringprocessDefinitionNamepersisted reference to the process definition name.protected java.lang.IntegerprocessDefinitionVersionpersisted reference to the process definition version.protected ExecutionEntityImplprocessInstancethe process instance.protected java.lang.StringprocessInstanceIdpersisted reference to the process instance.protected java.util.List<VariableInstanceEntity>queryVariablesprotected ExecutionEntityImplrootProcessInstanceprotected java.lang.StringrootProcessInstanceIdprotected java.util.DatestartTimeprotected java.lang.StringstartUserIdprotected ExecutionEntityImplsubProcessInstancereference to a subprocessinstance, not-null if currently subprocess is started from this executionprotected ExecutionEntityImplsuperExecutionsuper execution, not-null if this execution is part of a subprocessprotected java.lang.StringsuperExecutionIdpersisted reference to the super execution of this executionprotected intsuspendedJobCountprotected intsuspensionStateprotected inttaskCountprotected java.util.List<TaskEntity>tasksprotected java.lang.StringtenantIdThe tenant identifier (if any)protected inttimerJobCountprotected java.util.List<TimerJobEntity>timerJobsprotected intvariableCount-
Fields inherited from class org.activiti.engine.impl.persistence.entity.VariableScopeImpl
cachedElContext, transientVariabes, usedVariablesCache, variableInstances
-
Fields inherited from class org.activiti.engine.impl.persistence.entity.AbstractEntity
id, isInserted, isUpdated, revision
-
-
Constructor Summary
Constructors Constructor Description ExecutionEntityImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChildExecution(ExecutionEntity executionEntity)protected VariableInstanceEntitycreateVariableInstance(java.lang.String variableName, java.lang.Object value, ExecutionEntity sourceActivityExecution)static ExecutionEntityImplcreateWithEmptyRelationshipCollections()Static factory method: to be used when a new execution is created for the very first time/ Calling this will make sure no extra db fetches are needed later on, as all collections will be populated with empty collections.protected voidensureEventSubscriptionsInitialized()protected voidensureExecutionsInitialized()protected voidensureIdentityLinksInitialized()protected voidensureJobsInitialized()protected voidensureParentInitialized()protected voidensureProcessInstanceInitialized()protected voidensureRootProcessInstanceInitialized()protected voidensureSubProcessInstanceInitialized()protected voidensureSuperExecutionInitialized()protected voidensureTasksInitialized()protected voidensureTimerJobsInitialized()voidforceUpdate()java.lang.StringgetActivityId()Returns the id of the activity where the execution currently is at.java.lang.StringgetActivityName()java.lang.IntegergetAppVersion()java.lang.StringgetBusinessKey()The business key of this process instance.org.activiti.bpmn.model.ActivitiListenergetCurrentActivitiListener()Returns theActivitiListenerinstance matching anExecutionListenerif currently an execution listener is being execution.java.lang.StringgetCurrentActivityId()Gets the id of the current activity.org.activiti.bpmn.model.FlowElementgetCurrentFlowElement()The BPMN element where the execution currently is at.intgetDeadLetterJobCount()java.lang.StringgetDeleteReason()java.lang.StringgetDeploymentId()The deployment id of the process definition of the process instance.java.lang.StringgetDescription()Returns the description of this execution.java.lang.StringgetEventName()Will contain the event name in case this execution is passed in for anExecutionListener.intgetEventSubscriptionCount()java.util.List<EventSubscriptionEntity>getEventSubscriptions()java.util.List<ExecutionEntityImpl>getExecutions()ensures initialization and returns the non-null executions listintgetIdentityLinkCount()java.util.List<IdentityLinkEntity>getIdentityLinks()intgetJobCount()java.util.List<JobEntity>getJobs()java.lang.StringgetLocalizedDescription()Returns the localized description of this process instance.java.lang.StringgetLocalizedName()Returns the localized name of this process instance.java.util.DategetLockTime()java.lang.StringgetName()Returns the name of this execution.ExecutionEntityImplgetParent()ensures initialization and returns the parentjava.lang.StringgetParentId()Gets the id of the parent of this execution.java.lang.StringgetParentProcessInstanceId()Returns Id of the process instance related to the super execution of this execution.protected VariableScopeImplgetParentVariableScope()java.lang.ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.java.lang.StringgetProcessDefinitionId()The process definition key for the process instance this execution is associated with.java.lang.StringgetProcessDefinitionKey()The key of the process definition of the process instance.java.lang.StringgetProcessDefinitionName()The name of the process definition of the process instance.java.lang.IntegergetProcessDefinitionVersion()The version of the process definition of the process instance.ExecutionEntityImplgetProcessInstance()ensures initialization and returns the process instance.java.lang.StringgetProcessInstanceBusinessKey()The business key for the process instance this execution is associated with.java.lang.StringgetProcessInstanceId()Reference to the overall process instancejava.util.Map<java.lang.String,java.lang.Object>getProcessVariables()Returns the process variables if requested in the process instance queryjava.util.List<VariableInstanceEntity>getQueryVariables()ExecutionEntitygetRootProcessInstance()java.lang.StringgetRootProcessInstanceId()The 'root' process instance.protected ExecutionEntityImplgetSourceActivityExecution()used to calculate the sourceActivityExecution for method#updateActivityInstanceIdInHistoricVariableUpdate(HistoricDetailVariableInstanceUpdateEntity, ExecutionEntityImpl)protected VariableInstanceEntitygetSpecificVariable(java.lang.String variableName)protected java.util.List<VariableInstanceEntity>getSpecificVariables(java.util.Collection<java.lang.String> variableNames)java.util.DategetStartTime()Returns the start time of this process instance.java.lang.StringgetStartUserId()Returns the user id of this process instance.ExecutionEntityImplgetSubProcessInstance()ExecutionEntityImplgetSuperExecution()java.lang.StringgetSuperExecutionId()Gets the id of the calling execution.intgetSuspendedJobCount()intgetSuspensionState()intgetTaskCount()java.util.List<TaskEntity>getTasks()java.lang.StringgetTenantId()Returns the tenant id, if any is set before on the process definition or process instance.intgetTimerJobCount()java.util.List<TimerJobEntity>getTimerJobs()intgetVariableCount()voidinactivate()Inactivates this execution.protected voidinitializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)booleanisActive()returns whether this execution is currently active.booleanisConcurrent()returns whether this execution is concurrent or not.booleanisCountEnabled()booleanisDeleted()booleanisEnded()returns whether this execution has ended or not.booleanisEventScope()booleanisMultiInstanceRoot()Returns whather this execution is the root of a multi instance execution.booleanisProcessInstanceType()returns whether this execution is a process instance or not.booleanisScope()Returns whether this execution is a scope.booleanisSuspended()Indicates if the execution is suspended.protected java.util.Collection<VariableInstanceEntity>loadVariableInstances()voidsetActive(boolean isActive)makes this execution active or inactive.voidsetAppVersion(java.lang.Integer appVersion)voidsetBusinessKey(java.lang.String businessKey)voidsetConcurrent(boolean isConcurrent)changes the concurrent indicator on this execution.voidsetCountEnabled(boolean isCountEnabled)voidsetCurrentActivitiListener(org.activiti.bpmn.model.ActivitiListener currentActivitiListener)Called when anExecutionListeneris being executed.voidsetCurrentFlowElement(org.activiti.bpmn.model.FlowElement currentFlowElement)Change the current BPMN element the execution is at.voidsetDeadLetterJobCount(int deadLetterJobCount)voidsetDeleted(boolean isDeleted)voidsetDeleteReason(java.lang.String deleteReason)voidsetDeploymentId(java.lang.String deploymentId)voidsetDescription(java.lang.String description)voidsetEnded(boolean isEnded)voidsetEventName(java.lang.String eventName)Sets the current event (typically when execution anExecutionListener).voidsetEventScope(boolean isEventScope)voidsetEventSubscriptionCount(int eventSubscriptionCount)voidsetIdentityLinkCount(int identityLinkCount)voidsetJobCount(int jobCount)voidsetLocalizedDescription(java.lang.String localizedDescription)voidsetLocalizedName(java.lang.String localizedName)voidsetLockTime(java.util.Date lockTime)voidsetMultiInstanceRoot(boolean isMultiInstanceRoot)Changes whether this execution is a multi instance root or not.voidsetName(java.lang.String name)voidsetParent(ExecutionEntity parent)voidsetParentId(java.lang.String parentId)voidsetParentProcessInstanceId(java.lang.String parentProcessInstanceId)voidsetProcessDefinitionId(java.lang.String processDefinitionId)voidsetProcessDefinitionKey(java.lang.String processDefinitionKey)voidsetProcessDefinitionName(java.lang.String processDefinitionName)voidsetProcessDefinitionVersion(java.lang.Integer processDefinitionVersion)voidsetProcessInstance(ExecutionEntity processInstance)voidsetProcessInstanceId(java.lang.String processInstanceId)voidsetQueryVariables(java.util.List<VariableInstanceEntity> queryVariables)voidsetRootProcessInstance(ExecutionEntity rootProcessInstance)voidsetRootProcessInstanceId(java.lang.String rootProcessInstanceId)voidsetScope(boolean isScope)Changes whether this execution is a scope or not.voidsetStartTime(java.util.Date startTime)voidsetStartUserId(java.lang.String startUserId)voidsetSubProcessInstance(ExecutionEntity subProcessInstance)voidsetSuperExecution(ExecutionEntity superExecution)voidsetSuspendedJobCount(int suspendedJobCount)voidsetSuspensionState(int suspensionState)voidsetTaskCount(int taskCount)voidsetTenantId(java.lang.String tenantId)voidsetTimerJobCount(int timerJobCount)voidsetVariableCount(int variableCount)java.lang.StringtoString()protected voidupdateVariableInstance(VariableInstanceEntity variableInstance, java.lang.Object value, ExecutionEntity sourceActivityExecution)-
Methods inherited from class org.activiti.engine.impl.persistence.entity.VariableScopeImpl
collectTransientVariables, collectVariableInstances, collectVariableNames, collectVariables, createVariableLocal, createVariableLocal, createVariablesLocal, deleteVariableInstanceForExplicitUserCall, ensureVariableInstancesInitialized, getCachedElContext, getTransientVariable, getTransientVariableLocal, getTransientVariables, getTransientVariablesLocal, getUsedVariablesCache, getVariable, getVariable, getVariable, getVariableInstance, getVariableInstance, getVariableInstanceEntities, getVariableInstanceLocal, getVariableInstanceLocal, getVariableInstances, getVariableInstances, getVariableInstances, getVariableInstancesLocal, getVariableInstancesLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariables, getVariables, getVariablesLocal, getVariablesLocal, getVariablesLocal, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, isActivityIdUsedForDetails, removeTransientVariable, removeTransientVariableLocal, removeTransientVariables, removeTransientVariablesLocal, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setTransientVariable, setTransientVariableLocal, setTransientVariables, setTransientVariablesLocal, setVariable, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariableLocal, setVariables, setVariablesLocal
-
Methods inherited from class org.activiti.engine.impl.persistence.entity.AbstractEntity
getId, getRevision, getRevisionNext, isInserted, isUpdated, setId, setInserted, setRevision, setUpdated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.activiti.engine.delegate.DelegateExecution
getId
-
Methods inherited from interface org.activiti.engine.impl.persistence.entity.Entity
getId, isInserted, isUpdated, setId, setInserted, setUpdated
-
Methods inherited from interface org.activiti.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
-
Methods 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
-
-
-
-
Field Detail
-
currentFlowElement
protected org.activiti.bpmn.model.FlowElement currentFlowElement
-
currentActivitiListener
protected org.activiti.bpmn.model.ActivitiListener currentActivitiListener
-
processInstance
protected ExecutionEntityImpl processInstance
the process instance. this is the root of the execution tree. the processInstance of a process instance is a self reference.
-
parent
protected ExecutionEntityImpl parent
the parent execution
-
executions
protected java.util.List<ExecutionEntityImpl> executions
nested executions representing scopes or concurrent paths
-
superExecution
protected ExecutionEntityImpl superExecution
super execution, not-null if this execution is part of a subprocess
-
subProcessInstance
protected ExecutionEntityImpl subProcessInstance
reference to a subprocessinstance, not-null if currently subprocess is started from this execution
-
tenantId
protected java.lang.String tenantId
The tenant identifier (if any)
-
name
protected java.lang.String name
-
description
protected java.lang.String description
-
localizedName
protected java.lang.String localizedName
-
localizedDescription
protected java.lang.String localizedDescription
-
lockTime
protected java.util.Date lockTime
-
isActive
protected boolean isActive
-
isScope
protected boolean isScope
-
isConcurrent
protected boolean isConcurrent
-
isEnded
protected boolean isEnded
-
isEventScope
protected boolean isEventScope
-
isMultiInstanceRoot
protected boolean isMultiInstanceRoot
-
isCountEnabled
protected boolean isCountEnabled
-
eventName
protected java.lang.String eventName
-
eventSubscriptions
protected java.util.List<EventSubscriptionEntity> eventSubscriptions
-
jobs
protected java.util.List<JobEntity> jobs
-
timerJobs
protected java.util.List<TimerJobEntity> timerJobs
-
tasks
protected java.util.List<TaskEntity> tasks
-
identityLinks
protected java.util.List<IdentityLinkEntity> identityLinks
-
deleteReason
protected java.lang.String deleteReason
-
suspensionState
protected int suspensionState
-
startUserId
protected java.lang.String startUserId
-
startTime
protected java.util.Date startTime
-
eventSubscriptionCount
protected int eventSubscriptionCount
-
taskCount
protected int taskCount
-
jobCount
protected int jobCount
-
timerJobCount
protected int timerJobCount
-
suspendedJobCount
protected int suspendedJobCount
-
deadLetterJobCount
protected int deadLetterJobCount
-
variableCount
protected int variableCount
-
identityLinkCount
protected int identityLinkCount
-
processDefinitionId
protected java.lang.String processDefinitionId
persisted reference to the processDefinition.- See Also:
#processDefinition,#setProcessDefinition(ProcessDefinitionImpl),#getProcessDefinition()
-
processDefinitionKey
protected java.lang.String processDefinitionKey
persisted reference to the process definition key.
-
processDefinitionName
protected java.lang.String processDefinitionName
persisted reference to the process definition name.
-
processDefinitionVersion
protected java.lang.Integer processDefinitionVersion
persisted reference to the process definition version.
-
deploymentId
protected java.lang.String deploymentId
persisted reference to the deployment id.
-
activityId
protected java.lang.String activityId
persisted reference to the current position in the diagram within the#processDefinition.- See Also:
#activity,#setActivity(ActivityImpl),#getActivity()
-
activityName
protected java.lang.String activityName
The name of the current activity position
-
processInstanceId
protected java.lang.String processInstanceId
persisted reference to the process instance.- See Also:
getProcessInstance()
-
businessKey
protected java.lang.String businessKey
persisted reference to the business key.
-
parentId
protected java.lang.String parentId
persisted reference to the parent of this execution.- See Also:
getParent(),setParentId(String)
-
superExecutionId
protected java.lang.String superExecutionId
persisted reference to the super execution of this execution- See Also:
#setSuperExecution(ExecutionEntityImpl)
-
rootProcessInstanceId
protected java.lang.String rootProcessInstanceId
-
rootProcessInstance
protected ExecutionEntityImpl rootProcessInstance
-
forcedUpdate
protected boolean forcedUpdate
-
queryVariables
protected java.util.List<VariableInstanceEntity> queryVariables
-
isDeleted
protected boolean isDeleted
-
parentProcessInstanceId
protected java.lang.String parentProcessInstanceId
-
-
Method Detail
-
createWithEmptyRelationshipCollections
public static ExecutionEntityImpl createWithEmptyRelationshipCollections()
Static factory method: to be used when a new execution is created for the very first time/ Calling this will make sure no extra db fetches are needed later on, as all collections will be populated with empty collections. If they would be null, it would trigger a database fetch for those relationship entities.
-
getPersistentState
public java.lang.Object getPersistentState()
Description copied from interface:EntityReturns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.- Specified by:
getPersistentStatein interfaceEntity
-
getCurrentFlowElement
public org.activiti.bpmn.model.FlowElement getCurrentFlowElement()
Description copied from interface:DelegateExecutionThe BPMN element where the execution currently is at.- Specified by:
getCurrentFlowElementin interfaceDelegateExecution
-
setCurrentFlowElement
public void setCurrentFlowElement(org.activiti.bpmn.model.FlowElement currentFlowElement)
Description copied from interface:DelegateExecutionChange the current BPMN element the execution is at.- Specified by:
setCurrentFlowElementin interfaceDelegateExecution
-
getCurrentActivitiListener
public org.activiti.bpmn.model.ActivitiListener getCurrentActivitiListener()
Description copied from interface:DelegateExecutionReturns theActivitiListenerinstance matching anExecutionListenerif currently an execution listener is being execution. Returns null otherwise.- Specified by:
getCurrentActivitiListenerin interfaceDelegateExecution
-
setCurrentActivitiListener
public void setCurrentActivitiListener(org.activiti.bpmn.model.ActivitiListener currentActivitiListener)
Description copied from interface:DelegateExecutionCalled when anExecutionListeneris being executed.- Specified by:
setCurrentActivitiListenerin interfaceDelegateExecution
-
getExecutions
public java.util.List<ExecutionEntityImpl> getExecutions()
ensures initialization and returns the non-null executions list- Specified by:
getExecutionsin interfaceDelegateExecution- Specified by:
getExecutionsin interfaceExecutionEntity
-
addChildExecution
public void addChildExecution(ExecutionEntity executionEntity)
- Specified by:
addChildExecutionin interfaceExecutionEntity
-
ensureExecutionsInitialized
protected void ensureExecutionsInitialized()
-
getBusinessKey
public java.lang.String getBusinessKey()
Description copied from interface:ProcessInstanceThe business key of this process instance.- Specified by:
getBusinessKeyin interfaceProcessInstance
-
setBusinessKey
public void setBusinessKey(java.lang.String businessKey)
- Specified by:
setBusinessKeyin interfaceExecutionEntity
-
getProcessInstanceBusinessKey
public java.lang.String getProcessInstanceBusinessKey()
Description copied from interface:DelegateExecutionThe business key for the process instance this execution is associated with.- Specified by:
getProcessInstanceBusinessKeyin interfaceDelegateExecution
-
setProcessDefinitionId
public void setProcessDefinitionId(java.lang.String processDefinitionId)
- Specified by:
setProcessDefinitionIdin interfaceExecutionEntity
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
Description copied from interface:DelegateExecutionThe process definition key for the process instance this execution is associated with.- Specified by:
getProcessDefinitionIdin interfaceDelegateExecution- Specified by:
getProcessDefinitionIdin interfaceProcessInstance
-
getProcessDefinitionKey
public java.lang.String getProcessDefinitionKey()
Description copied from interface:ProcessInstanceThe key of the process definition of the process instance.- Specified by:
getProcessDefinitionKeyin interfaceProcessInstance
-
setProcessDefinitionKey
public void setProcessDefinitionKey(java.lang.String processDefinitionKey)
- Specified by:
setProcessDefinitionKeyin interfaceExecutionEntity
-
getProcessDefinitionName
public java.lang.String getProcessDefinitionName()
Description copied from interface:ProcessInstanceThe name of the process definition of the process instance.- Specified by:
getProcessDefinitionNamein interfaceProcessInstance
-
setProcessDefinitionName
public void setProcessDefinitionName(java.lang.String processDefinitionName)
- Specified by:
setProcessDefinitionNamein interfaceExecutionEntity
-
getProcessDefinitionVersion
public java.lang.Integer getProcessDefinitionVersion()
Description copied from interface:ProcessInstanceThe version of the process definition of the process instance.- Specified by:
getProcessDefinitionVersionin interfaceProcessInstance
-
setProcessDefinitionVersion
public void setProcessDefinitionVersion(java.lang.Integer processDefinitionVersion)
- Specified by:
setProcessDefinitionVersionin interfaceExecutionEntity
-
getDeploymentId
public java.lang.String getDeploymentId()
Description copied from interface:ProcessInstanceThe deployment id of the process definition of the process instance.- Specified by:
getDeploymentIdin interfaceProcessInstance
-
setDeploymentId
public void setDeploymentId(java.lang.String deploymentId)
- Specified by:
setDeploymentIdin interfaceExecutionEntity
-
getProcessInstance
public ExecutionEntityImpl getProcessInstance()
ensures initialization and returns the process instance.- Specified by:
getProcessInstancein interfaceExecutionEntity
-
ensureProcessInstanceInitialized
protected void ensureProcessInstanceInitialized()
-
setProcessInstance
public void setProcessInstance(ExecutionEntity processInstance)
- Specified by:
setProcessInstancein interfaceExecutionEntity
-
isProcessInstanceType
public boolean isProcessInstanceType()
Description copied from interface:DelegateExecutionreturns whether this execution is a process instance or not.- Specified by:
isProcessInstanceTypein interfaceDelegateExecution
-
getParent
public ExecutionEntityImpl getParent()
ensures initialization and returns the parent- Specified by:
getParentin interfaceDelegateExecution- Specified by:
getParentin interfaceExecutionEntity
-
ensureParentInitialized
protected void ensureParentInitialized()
-
setParent
public void setParent(ExecutionEntity parent)
- Specified by:
setParentin interfaceExecutionEntity
-
getParentProcessInstanceId
public java.lang.String getParentProcessInstanceId()
Description copied from interface:ExecutionReturns Id of the process instance related to the super execution of this execution.- Specified by:
getParentProcessInstanceIdin interfaceExecution
-
setParentProcessInstanceId
public void setParentProcessInstanceId(java.lang.String parentProcessInstanceId)
- Specified by:
setParentProcessInstanceIdin interfaceExecutionEntity
-
getSuperExecutionId
public java.lang.String getSuperExecutionId()
Description copied from interface:DelegateExecutionGets the id of the calling execution. If not null, the execution is part of a subprocess.- Specified by:
getSuperExecutionIdin interfaceDelegateExecution- Specified by:
getSuperExecutionIdin interfaceExecution
-
getSuperExecution
public ExecutionEntityImpl getSuperExecution()
- Specified by:
getSuperExecutionin interfaceExecutionEntity
-
setSuperExecution
public void setSuperExecution(ExecutionEntity superExecution)
- Specified by:
setSuperExecutionin interfaceExecutionEntity
-
ensureSuperExecutionInitialized
protected void ensureSuperExecutionInitialized()
-
getSubProcessInstance
public ExecutionEntityImpl getSubProcessInstance()
- Specified by:
getSubProcessInstancein interfaceExecutionEntity
-
setSubProcessInstance
public void setSubProcessInstance(ExecutionEntity subProcessInstance)
- Specified by:
setSubProcessInstancein interfaceExecutionEntity
-
ensureSubProcessInstanceInitialized
protected void ensureSubProcessInstanceInitialized()
-
getRootProcessInstance
public ExecutionEntity getRootProcessInstance()
- Specified by:
getRootProcessInstancein interfaceExecutionEntity
-
ensureRootProcessInstanceInitialized
protected void ensureRootProcessInstanceInitialized()
-
setRootProcessInstance
public void setRootProcessInstance(ExecutionEntity rootProcessInstance)
- Specified by:
setRootProcessInstancein interfaceExecutionEntity
-
getRootProcessInstanceId
public java.lang.String getRootProcessInstanceId()
Description copied from interface:DelegateExecutionThe 'root' process instance. When using call activity for example, the processInstance set will not always be the root. This method returns the topmost process instance.- Specified by:
getRootProcessInstanceIdin interfaceDelegateExecution- Specified by:
getRootProcessInstanceIdin interfaceExecution
-
setRootProcessInstanceId
public void setRootProcessInstanceId(java.lang.String rootProcessInstanceId)
- Specified by:
setRootProcessInstanceIdin interfaceExecutionEntity
-
isScope
public boolean isScope()
Description copied from interface:DelegateExecutionReturns whether this execution is a scope.- Specified by:
isScopein interfaceDelegateExecution
-
setScope
public void setScope(boolean isScope)
Description copied from interface:DelegateExecutionChanges whether this execution is a scope or not.- Specified by:
setScopein interfaceDelegateExecution
-
forceUpdate
public void forceUpdate()
- Specified by:
forceUpdatein interfaceExecutionEntity
-
initializeVariableInstanceBackPointer
protected void initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
- Specified by:
initializeVariableInstanceBackPointerin classVariableScopeImpl
-
loadVariableInstances
protected java.util.Collection<VariableInstanceEntity> loadVariableInstances()
- Specified by:
loadVariableInstancesin classVariableScopeImpl
-
getParentVariableScope
protected VariableScopeImpl getParentVariableScope()
- Specified by:
getParentVariableScopein classVariableScopeImpl
-
getSourceActivityExecution
protected ExecutionEntityImpl getSourceActivityExecution()
used to calculate the sourceActivityExecution for method#updateActivityInstanceIdInHistoricVariableUpdate(HistoricDetailVariableInstanceUpdateEntity, ExecutionEntityImpl)- Overrides:
getSourceActivityExecutionin classVariableScopeImpl
-
createVariableInstance
protected VariableInstanceEntity createVariableInstance(java.lang.String variableName, java.lang.Object value, ExecutionEntity sourceActivityExecution)
- Overrides:
createVariableInstancein classVariableScopeImpl
-
updateVariableInstance
protected void updateVariableInstance(VariableInstanceEntity variableInstance, java.lang.Object value, ExecutionEntity sourceActivityExecution)
- Overrides:
updateVariableInstancein classVariableScopeImpl
-
getSpecificVariable
protected VariableInstanceEntity getSpecificVariable(java.lang.String variableName)
- Specified by:
getSpecificVariablein classVariableScopeImpl
-
getSpecificVariables
protected java.util.List<VariableInstanceEntity> getSpecificVariables(java.util.Collection<java.lang.String> variableNames)
- Specified by:
getSpecificVariablesin classVariableScopeImpl
-
getEventSubscriptions
public java.util.List<EventSubscriptionEntity> getEventSubscriptions()
- Specified by:
getEventSubscriptionsin interfaceExecutionEntity
-
ensureEventSubscriptionsInitialized
protected void ensureEventSubscriptionsInitialized()
-
getJobs
public java.util.List<JobEntity> getJobs()
- Specified by:
getJobsin interfaceExecutionEntity
-
ensureJobsInitialized
protected void ensureJobsInitialized()
-
getTimerJobs
public java.util.List<TimerJobEntity> getTimerJobs()
- Specified by:
getTimerJobsin interfaceExecutionEntity
-
ensureTimerJobsInitialized
protected void ensureTimerJobsInitialized()
-
ensureTasksInitialized
protected void ensureTasksInitialized()
-
getTasks
public java.util.List<TaskEntity> getTasks()
- Specified by:
getTasksin interfaceExecutionEntity
-
getIdentityLinks
public java.util.List<IdentityLinkEntity> getIdentityLinks()
- Specified by:
getIdentityLinksin interfaceExecutionEntity
-
ensureIdentityLinksInitialized
protected void ensureIdentityLinksInitialized()
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
Description copied from interface:DelegateExecutionReference to the overall process instance- Specified by:
getProcessInstanceIdin interfaceDelegateExecution- Specified by:
getProcessInstanceIdin interfaceExecution
-
setProcessInstanceId
public void setProcessInstanceId(java.lang.String processInstanceId)
- Specified by:
setProcessInstanceIdin interfaceExecutionEntity
-
getParentId
public java.lang.String getParentId()
Description copied from interface:DelegateExecutionGets the id of the parent of this execution. If null, the execution represents a process-instance.- Specified by:
getParentIdin interfaceDelegateExecution- Specified by:
getParentIdin interfaceExecution
-
setParentId
public void setParentId(java.lang.String parentId)
- Specified by:
setParentIdin interfaceExecutionEntity
-
getActivityId
public java.lang.String getActivityId()
Description copied from interface:ExecutionReturns the id of the activity where the execution currently is at. Returns null if the execution is not a 'leaf' execution (eg concurrent parent).- Specified by:
getActivityIdin interfaceExecution
-
isConcurrent
public boolean isConcurrent()
Description copied from interface:DelegateExecutionreturns whether this execution is concurrent or not.- Specified by:
isConcurrentin interfaceDelegateExecution
-
setConcurrent
public void setConcurrent(boolean isConcurrent)
Description copied from interface:DelegateExecutionchanges the concurrent indicator on this execution.- Specified by:
setConcurrentin interfaceDelegateExecution
-
isActive
public boolean isActive()
Description copied from interface:DelegateExecutionreturns whether this execution is currently active.- Specified by:
isActivein interfaceDelegateExecution
-
setActive
public void setActive(boolean isActive)
Description copied from interface:DelegateExecutionmakes this execution active or inactive.- Specified by:
setActivein interfaceDelegateExecution
-
inactivate
public void inactivate()
Description copied from interface:DelegateExecutionInactivates this execution. This is useful for example in a join: the execution still exists, but it is not longer active.- Specified by:
inactivatein interfaceDelegateExecution
-
isEnded
public boolean isEnded()
Description copied from interface:DelegateExecutionreturns whether this execution has ended or not.- Specified by:
isEndedin interfaceDelegateExecution- Specified by:
isEndedin interfaceExecution
-
setEnded
public void setEnded(boolean isEnded)
- Specified by:
setEndedin interfaceExecutionEntity
-
getEventName
public java.lang.String getEventName()
Description copied from interface:DelegateExecutionWill contain the event name in case this execution is passed in for anExecutionListener.- Specified by:
getEventNamein interfaceDelegateExecution
-
setEventName
public void setEventName(java.lang.String eventName)
Description copied from interface:DelegateExecutionSets the current event (typically when execution anExecutionListener).- Specified by:
setEventNamein interfaceDelegateExecution- Specified by:
setEventNamein interfaceExecutionEntity
-
getDeleteReason
public java.lang.String getDeleteReason()
- Specified by:
getDeleteReasonin interfaceExecutionEntity
-
setDeleteReason
public void setDeleteReason(java.lang.String deleteReason)
- Specified by:
setDeleteReasonin interfaceExecutionEntity
-
getSuspensionState
public int getSuspensionState()
- Specified by:
getSuspensionStatein interfaceExecutionEntity
-
setSuspensionState
public void setSuspensionState(int suspensionState)
- Specified by:
setSuspensionStatein interfaceExecutionEntity
-
isSuspended
public boolean isSuspended()
Description copied from interface:ExecutionIndicates if the execution is suspended.- Specified by:
isSuspendedin interfaceExecution- Specified by:
isSuspendedin interfaceProcessInstance
-
isEventScope
public boolean isEventScope()
- Specified by:
isEventScopein interfaceExecutionEntity
-
setEventScope
public void setEventScope(boolean isEventScope)
- Specified by:
setEventScopein interfaceExecutionEntity
-
isMultiInstanceRoot
public boolean isMultiInstanceRoot()
Description copied from interface:DelegateExecutionReturns whather this execution is the root of a multi instance execution.- Specified by:
isMultiInstanceRootin interfaceDelegateExecution- Specified by:
isMultiInstanceRootin interfaceExecutionEntity
-
setMultiInstanceRoot
public void setMultiInstanceRoot(boolean isMultiInstanceRoot)
Description copied from interface:DelegateExecutionChanges whether this execution is a multi instance root or not.- Specified by:
setMultiInstanceRootin interfaceDelegateExecution- Specified by:
setMultiInstanceRootin interfaceExecutionEntity
-
isCountEnabled
public boolean isCountEnabled()
- Specified by:
isCountEnabledin interfaceCountingExecutionEntity
-
setCountEnabled
public void setCountEnabled(boolean isCountEnabled)
- Specified by:
setCountEnabledin interfaceCountingExecutionEntity
-
getCurrentActivityId
public java.lang.String getCurrentActivityId()
Description copied from interface:DelegateExecutionGets the id of the current activity.- Specified by:
getCurrentActivityIdin interfaceDelegateExecution
-
getName
public java.lang.String getName()
Description copied from interface:ExecutionReturns the name of this execution.- Specified by:
getNamein interfaceExecution- Specified by:
getNamein interfaceProcessInstance
-
setName
public void setName(java.lang.String name)
- Specified by:
setNamein interfaceExecutionEntity
-
getDescription
public java.lang.String getDescription()
Description copied from interface:ExecutionReturns the description of this execution.- Specified by:
getDescriptionin interfaceExecution- Specified by:
getDescriptionin interfaceProcessInstance
-
setDescription
public void setDescription(java.lang.String description)
- Specified by:
setDescriptionin interfaceExecutionEntity
-
getLocalizedName
public java.lang.String getLocalizedName()
Description copied from interface:ProcessInstanceReturns the localized name of this process instance.- Specified by:
getLocalizedNamein interfaceProcessInstance
-
setLocalizedName
public void setLocalizedName(java.lang.String localizedName)
- Specified by:
setLocalizedNamein interfaceExecutionEntity
-
getLocalizedDescription
public java.lang.String getLocalizedDescription()
Description copied from interface:ProcessInstanceReturns the localized description of this process instance.- Specified by:
getLocalizedDescriptionin interfaceProcessInstance
-
setLocalizedDescription
public void setLocalizedDescription(java.lang.String localizedDescription)
- Specified by:
setLocalizedDescriptionin interfaceExecutionEntity
-
getTenantId
public java.lang.String getTenantId()
Description copied from interface:DelegateExecutionReturns the tenant id, if any is set before on the process definition or process instance.- Specified by:
getTenantIdin interfaceDelegateExecution- Specified by:
getTenantIdin interfaceExecution- Specified by:
getTenantIdin interfaceProcessInstance
-
setTenantId
public void setTenantId(java.lang.String tenantId)
- Specified by:
setTenantIdin interfaceExecutionEntity
-
getLockTime
public java.util.Date getLockTime()
- Specified by:
getLockTimein interfaceExecutionEntity
-
setLockTime
public void setLockTime(java.util.Date lockTime)
- Specified by:
setLockTimein interfaceExecutionEntity
-
getProcessVariables
public java.util.Map<java.lang.String,java.lang.Object> getProcessVariables()
Description copied from interface:ProcessInstanceReturns the process variables if requested in the process instance query- Specified by:
getProcessVariablesin interfaceProcessInstance
-
getQueryVariables
public java.util.List<VariableInstanceEntity> getQueryVariables()
-
setQueryVariables
public void setQueryVariables(java.util.List<VariableInstanceEntity> queryVariables)
-
isDeleted
public boolean isDeleted()
- Specified by:
isDeletedin interfaceEntity- Specified by:
isDeletedin interfaceExecutionEntity- Overrides:
isDeletedin classAbstractEntity
-
setDeleted
public void setDeleted(boolean isDeleted)
- Specified by:
setDeletedin interfaceEntity- Specified by:
setDeletedin interfaceExecutionEntity- Overrides:
setDeletedin classAbstractEntity
-
getActivityName
public java.lang.String getActivityName()
-
getStartUserId
public java.lang.String getStartUserId()
Description copied from interface:ProcessInstanceReturns the user id of this process instance.- Specified by:
getStartUserIdin interfaceExecutionEntity- Specified by:
getStartUserIdin interfaceProcessInstance
-
setStartUserId
public void setStartUserId(java.lang.String startUserId)
- Specified by:
setStartUserIdin interfaceExecutionEntity
-
getStartTime
public java.util.Date getStartTime()
Description copied from interface:ProcessInstanceReturns the start time of this process instance.- Specified by:
getStartTimein interfaceExecutionEntity- Specified by:
getStartTimein interfaceProcessInstance
-
setStartTime
public void setStartTime(java.util.Date startTime)
- Specified by:
setStartTimein interfaceExecutionEntity
-
getEventSubscriptionCount
public int getEventSubscriptionCount()
- Specified by:
getEventSubscriptionCountin interfaceCountingExecutionEntity
-
setEventSubscriptionCount
public void setEventSubscriptionCount(int eventSubscriptionCount)
- Specified by:
setEventSubscriptionCountin interfaceCountingExecutionEntity
-
getTaskCount
public int getTaskCount()
- Specified by:
getTaskCountin interfaceCountingExecutionEntity
-
setTaskCount
public void setTaskCount(int taskCount)
- Specified by:
setTaskCountin interfaceCountingExecutionEntity
-
getJobCount
public int getJobCount()
- Specified by:
getJobCountin interfaceCountingExecutionEntity
-
setJobCount
public void setJobCount(int jobCount)
- Specified by:
setJobCountin interfaceCountingExecutionEntity
-
getTimerJobCount
public int getTimerJobCount()
- Specified by:
getTimerJobCountin interfaceCountingExecutionEntity
-
setTimerJobCount
public void setTimerJobCount(int timerJobCount)
- Specified by:
setTimerJobCountin interfaceCountingExecutionEntity
-
getSuspendedJobCount
public int getSuspendedJobCount()
- Specified by:
getSuspendedJobCountin interfaceCountingExecutionEntity
-
setSuspendedJobCount
public void setSuspendedJobCount(int suspendedJobCount)
- Specified by:
setSuspendedJobCountin interfaceCountingExecutionEntity
-
getDeadLetterJobCount
public int getDeadLetterJobCount()
- Specified by:
getDeadLetterJobCountin interfaceCountingExecutionEntity
-
setDeadLetterJobCount
public void setDeadLetterJobCount(int deadLetterJobCount)
- Specified by:
setDeadLetterJobCountin interfaceCountingExecutionEntity
-
getVariableCount
public int getVariableCount()
- Specified by:
getVariableCountin interfaceCountingExecutionEntity
-
setVariableCount
public void setVariableCount(int variableCount)
- Specified by:
setVariableCountin interfaceCountingExecutionEntity
-
getIdentityLinkCount
public int getIdentityLinkCount()
- Specified by:
getIdentityLinkCountin interfaceCountingExecutionEntity
-
setIdentityLinkCount
public void setIdentityLinkCount(int identityLinkCount)
- Specified by:
setIdentityLinkCountin interfaceCountingExecutionEntity
-
setAppVersion
public void setAppVersion(java.lang.Integer appVersion)
- Specified by:
setAppVersionin interfaceProcessInstance
-
getAppVersion
public java.lang.Integer getAppVersion()
- Specified by:
getAppVersionin interfaceProcessInstance
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-