Class ExecutionEntityImpl
java.lang.Object
org.flowable.common.engine.impl.persistence.entity.AbstractEntity
org.flowable.variable.service.impl.persistence.entity.VariableScopeImpl
org.flowable.engine.impl.persistence.entity.AbstractBpmnEngineVariableScopeEntity
org.flowable.engine.impl.persistence.entity.ExecutionEntityImpl
- All Implemented Interfaces:
Serializable,VariableContainer,HasRevision,AlwaysUpdatedPersistentObject,Entity,DelegateExecution,CountingExecutionEntity,ExecutionEntity,Execution,ProcessInstance,VariableScope
public class ExecutionEntityImpl
extends AbstractBpmnEngineVariableScopeEntity
implements ExecutionEntity, CountingExecutionEntity
- Author:
- Tom Baeyens, Daniel Meyer, Falko Menge, Saeid Mirzaei, Joram Barrez
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringPersisted reference to the current position in the diagram within theprocessDefinitionId.protected StringThe name of the current activity positionprotected StringPersisted reference to the business key.protected StringPersisted reference to the business status.protected Stringprotected Stringprotected FlowElementprotected FlowableListenerprotected intprotected Stringprotected StringPersisted reference to the deployment id.protected Stringprotected Stringprotected intprotected List<EventSubscriptionEntity>protected List<ExecutionEntityImpl>nested executions representing scopes or concurrent pathsprotected intprotected booleanprotected intprotected List<IdentityLinkEntity>protected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected intprotected Stringprotected Stringprotected Stringprotected Dateprotected Stringprotected FlowElementprotected ExecutionEntityImplthe parent executionprotected StringPersisted reference to the parent of this execution.protected StringPersisted reference to the process definition category.protected StringPersisted reference to the processDefinition.protected StringPersisted reference to the process definition key.protected StringPersisted reference to the process definition name.protected IntegerPersisted reference to the process definition version.protected ExecutionEntityImplthe process instance.protected StringPersisted reference to the process instance.protected StringThe optional stage instance id, if this execution runs in the context of a CMMN case and has a parent stage it belongs to.protected List<VariableInstanceEntity>protected Stringprotected Stringprotected ExecutionEntityImplprotected Stringprotected Stringprotected Dateprotected Stringprotected ExecutionEntityImplreference to a subprocessinstance, not-null if currently subprocess is started from this executionprotected ExecutionEntityImplsuper execution, not-null if this execution is part of a subprocessprotected StringPersisted reference to the super execution of this executionprotected intprotected intprotected intprotected StringThe tenant identifier (if any)protected intprotected intFields inherited from class org.flowable.variable.service.impl.persistence.entity.VariableScopeImpl
cachedElContext, transientVariables, usedVariablesCache, variableInstancesFields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revisionFields inherited from interface org.flowable.engine.impl.persistence.entity.ExecutionEntity
EXECUTION_ENTITY_START_TIME_ASC_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildExecution(ExecutionEntity executionEntity) protected voidaddLoggingSessionInfo(com.fasterxml.jackson.databind.node.ObjectNode loggingNode) protected VariableInstanceEntitycreateVariableInstance(String variableName, Object value) protected VariableInstanceEntitycreateVariableInstance(String variableName, Object value, ExecutionEntity sourceExecution) protected voidcreateVariableLocal(String variableName, Object value, ExecutionEntity sourceActivityExecution) static ExecutionEntityImplStatic 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 voiddeleteVariableInstanceForExplicitUserCall(VariableInstanceEntity variableInstance) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidvoidReturns the id of the activity where the execution currently is at.The business key of this process instance.The business status of this process instance.Returns the callback id of this process instance.Returns the callback type of this process instance.Gets the id of the current activity.Gets the name of the current activity.Returns theFlowableListenerinstance matching anExecutionListenerif currently an execution listener is being execution.The BPMN element where the execution currently is at.intThe deployment id of the process definition of the process instance.Returns the description of this execution.Will contain the event name in case this execution is passed in for anExecutionListener.intensures initialization and returns the non-null executions listintintbooleanbooleanbooleanbooleanbooleanbooleanbooleanintReturns the localized description of this process instance.Returns the localized name of this process instance.getName()Returns the name of this execution.ensures initialization and returns the parentGets the id of the parent of this execution.protected VariableScopeImplReturns a representation of the object, as would be stored in the database.The category of the process definition of the process instance.The process definition key for the process instance this execution is associated with.The key of the process definition of the process instance.The name of the process definition of the process instance.The version of the process definition of the process instance.ensures initialization and returns the process instance.The business key for the process instance this execution is associated with.The business status for the process instance this execution is associated with.Reference to the overall process instanceReturns the process variables if requested in the process instance queryIf this execution runs in the context of a case and stage, this method returns it's closest parent stage instance id (the stage plan item instance id to be precise).If this execution has created a case (through a case task), this will return the referenced case instance id.If this execution has created a case (through a case task), this will return the referenced case type (e.g.protected StringgetRelatedActivityInstanceId(ExecutionEntity sourceExecution) The 'root' process instance.protected VariableInstanceEntitygetSpecificVariable(String variableName) protected List<VariableInstanceEntity>getSpecificVariables(Collection<String> variableNames) Returns the start time of this process instance.Returns the user id of this process instance.Gets the id of the calling execution.intintintReturns the tenant id, if any is set before on the process definition or process instance.intintprotected VariableServiceConfigurationvoidInactivates this execution.protected voidinitializeVariableInstanceBackPointer(VariableInstance variableInstance) booleanisActive()returns whether this execution is currently active.booleanreturns whether this execution is concurrent or not.booleanbooleanisEnded()returns whether this execution has ended or not.booleanbooleanReturns whether this execution is the root of a multi instance execution.booleanreturns whether this execution is a process instance or not.protected booleanReturn whether changes to the variables are propagated to the history storage.booleanisScope()Returns whether this execution is a scope.booleanIndicates if the execution is suspended.protected Collection<VariableInstanceEntity>protected voidvoidsetActive(boolean isActive) makes this execution active or inactive.voidsetActivityId(String activityId) voidsetBusinessKey(String businessKey) voidsetBusinessStatus(String businessStatus) voidsetCallbackId(String callbackId) voidsetCallbackType(String callbackType) voidsetConcurrent(boolean isConcurrent) changes the concurrent indicator on this execution.voidsetCountEnabled(boolean isCountEnabled) voidsetCurrentActivityName(String activityName) voidsetCurrentFlowableListener(FlowableListener currentListener) Called when anExecutionListeneris being executed.voidsetCurrentFlowElement(FlowElement currentFlowElement) Change the current BPMN element the execution is at.voidsetDeadLetterJobCount(int deadLetterJobCount) voidsetDeleteReason(String deleteReason) voidsetDeploymentId(String deploymentId) voidsetDescription(String description) voidsetEnded(boolean isEnded) voidsetEventName(String eventName) Sets the current event (typically when execution anExecutionListener).voidsetEventScope(boolean isEventScope) voidsetEventSubscriptionCount(int eventSubscriptionCount) voidsetExternalWorkerJobCount(int externalWorkerJobCount) voidsetIdentityLinkCount(int identityLinkCount) voidsetIsActive(boolean isActive) voidsetIsConcurrent(boolean isConcurrent) voidsetIsCountEnabled(boolean isCountEnabled) voidsetIsEnded(boolean isEnded) voidsetIsEventScope(boolean isEventScope) voidsetIsMultiInstanceRoot(boolean isMultiInstanceRoot) voidsetIsScope(boolean isScope) voidsetJobCount(int jobCount) voidsetLocalizedDescription(String localizedDescription) voidsetLocalizedName(String localizedName) voidsetLockOwner(String lockOwner) voidsetLockTime(Date lockTime) voidsetMultiInstanceRoot(boolean isMultiInstanceRoot) Changes whether this execution is a multi instance root or not.voidvoidsetOriginatingCurrentFlowElement(FlowElement flowElement) voidsetParent(ExecutionEntity parent) voidsetParentId(String parentId) voidsetProcessDefinitionCategory(String processDefinitionCategory) voidsetProcessDefinitionId(String processDefinitionId) voidsetProcessDefinitionKey(String processDefinitionKey) voidsetProcessDefinitionName(String processDefinitionName) voidsetProcessDefinitionVersion(Integer processDefinitionVersion) voidsetProcessInstance(ExecutionEntity processInstance) voidsetProcessInstanceId(String processInstanceId) voidsetPropagatedStageInstanceId(String propagatedStageInstanceId) voidsetQueryVariables(List<VariableInstanceEntity> queryVariables) voidsetReferenceId(String referenceId) voidsetReferenceType(String referenceType) voidsetRootProcessInstance(ExecutionEntity rootProcessInstance) voidsetRootProcessInstanceId(String rootProcessInstanceId) voidsetScope(boolean isScope) Changes whether this execution is a scope or not.voidsetStartActivityId(String startActivityId) voidsetStartTime(Date startTime) voidsetStartUserId(String startUserId) voidsetSubProcessInstance(ExecutionEntity subProcessInstance) voidsetSuperExecution(ExecutionEntity superExecution) voidsetSuperExecutionId(String superExecutionId) voidsetSuspendedJobCount(int suspendedJobCount) voidsetSuspensionState(int suspensionState) voidsetTaskCount(int taskCount) voidsetTenantId(String tenantId) voidsetTimerJobCount(int timerJobCount) voidsetVariable(String variableName, Object value, boolean fetchAllVariables) The defaultVariableScopeImpl.setVariable(String, Object)fetches all variables (for historical and backwards compatible reasons) while setting the variables.voidsetVariable(String variableName, Object value, ExecutionEntity sourceExecution, boolean fetchAllVariables) voidsetVariableCount(int variableCount) setVariableLocal(String variableName, Object value, boolean fetchAllVariables) The defaultVariableScopeImpl.setVariableLocal(String, Object)fetches all variables (for historical and backwards compatible reasons) while setting the variables.setVariableLocal(String variableName, Object value, ExecutionEntity sourceExecution, boolean fetchAllVariables) Create a snapshot read only delegate execution of this delegate execution.protected booleanstoreVariableLocal(String variableName) toString()protected voidupdateVariableInstance(VariableInstanceEntity variableInstance, Object value) protected voidupdateVariableInstance(VariableInstanceEntity variableInstance, Object value, ExecutionEntity sourceExecution) Methods inherited from class org.flowable.engine.impl.persistence.entity.AbstractBpmnEngineVariableScopeEntity
getIdPrefixMethods inherited from class org.flowable.variable.service.impl.persistence.entity.VariableScopeImpl
collectTransientVariables, collectVariableInstances, collectVariableNames, collectVariables, createVariableLocal, createVariablesLocal, 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, internalSetVariableInstances, isExpression, removeTransientVariable, removeTransientVariableLocal, removeTransientVariables, removeTransientVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setTransientVariable, setTransientVariableLocal, setTransientVariables, setTransientVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocalMethods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.flowable.engine.delegate.DelegateExecution
getIdMethods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdatedMethods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevisionMethods inherited from interface org.flowable.variable.api.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, setVariableLocal, setVariables, setVariablesLocal
-
Field Details
-
currentFlowElement
-
currentListener
-
originatingCurrentFlowElement
-
processInstance
the process instance. this is the root of the execution tree. the processInstance of a process instance is a self reference. -
parent
the parent execution -
executions
nested executions representing scopes or concurrent paths -
superExecution
super execution, not-null if this execution is part of a subprocess -
subProcessInstance
reference to a subprocessinstance, not-null if currently subprocess is started from this execution -
tenantId
The tenant identifier (if any) -
name
-
description
-
localizedName
-
localizedDescription
-
lockTime
-
lockOwner
-
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
-
eventSubscriptions
-
identityLinks
-
deleteReason
-
suspensionState
protected int suspensionState -
startActivityId
-
startUserId
-
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 -
externalWorkerJobCount
protected int externalWorkerJobCount -
variableCount
protected int variableCount -
identityLinkCount
protected int identityLinkCount -
processDefinitionId
Persisted reference to the processDefinition. -
processDefinitionKey
Persisted reference to the process definition key. -
processDefinitionName
Persisted reference to the process definition name. -
processDefinitionVersion
Persisted reference to the process definition version. -
processDefinitionCategory
Persisted reference to the process definition category. -
deploymentId
Persisted reference to the deployment id. -
activityId
Persisted reference to the current position in the diagram within theprocessDefinitionId.- See Also:
-
activityName
The name of the current activity position -
processInstanceId
Persisted reference to the process instance.- See Also:
-
businessKey
Persisted reference to the business key. -
businessStatus
Persisted reference to the business status. -
parentId
Persisted reference to the parent of this execution.- See Also:
-
superExecutionId
Persisted reference to the super execution of this execution -
rootProcessInstanceId
-
rootProcessInstance
-
forcedUpdate
protected boolean forcedUpdate -
queryVariables
-
callbackId
-
callbackType
-
referenceId
-
referenceType
-
propagatedStageInstanceId
The optional stage instance id, if this execution runs in the context of a CMMN case and has a parent stage it belongs to.
-
-
Constructor Details
-
ExecutionEntityImpl
public ExecutionEntityImpl()
-
-
Method Details
-
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
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
-
snapshotReadOnly
Description copied from interface:DelegateExecutionCreate a snapshot read only delegate execution of this delegate execution.- Specified by:
snapshotReadOnlyin interfaceDelegateExecution- Returns:
- a
ReadOnlyDelegateExecution
-
getCurrentFlowElement
Description copied from interface:DelegateExecutionThe BPMN element where the execution currently is at.- Specified by:
getCurrentFlowElementin interfaceDelegateExecution
-
setCurrentFlowElement
Description copied from interface:DelegateExecutionChange the current BPMN element the execution is at.- Specified by:
setCurrentFlowElementin interfaceDelegateExecution
-
getCurrentFlowableListener
Description copied from interface:DelegateExecutionReturns theFlowableListenerinstance matching anExecutionListenerif currently an execution listener is being execution. Returns null otherwise.- Specified by:
getCurrentFlowableListenerin interfaceDelegateExecution
-
setCurrentFlowableListener
Description copied from interface:DelegateExecutionCalled when anExecutionListeneris being executed.- Specified by:
setCurrentFlowableListenerin interfaceDelegateExecution
-
getOriginatingCurrentFlowElement
- Specified by:
getOriginatingCurrentFlowElementin interfaceExecutionEntity
-
setOriginatingCurrentFlowElement
- Specified by:
setOriginatingCurrentFlowElementin interfaceExecutionEntity
-
getExecutions
ensures initialization and returns the non-null executions list- Specified by:
getExecutionsin interfaceDelegateExecution- Specified by:
getExecutionsin interfaceExecutionEntity
-
addChildExecution
- Specified by:
addChildExecutionin interfaceExecutionEntity
-
ensureExecutionsInitialized
protected void ensureExecutionsInitialized() -
getBusinessKey
Description copied from interface:ProcessInstanceThe business key of this process instance.- Specified by:
getBusinessKeyin interfaceProcessInstance
-
setBusinessKey
- Specified by:
setBusinessKeyin interfaceExecutionEntity
-
getBusinessStatus
Description copied from interface:ProcessInstanceThe business status of this process instance.- Specified by:
getBusinessStatusin interfaceProcessInstance
-
setBusinessStatus
- Specified by:
setBusinessStatusin interfaceExecutionEntity
-
getProcessInstanceBusinessKey
Description copied from interface:DelegateExecutionThe business key for the process instance this execution is associated with.- Specified by:
getProcessInstanceBusinessKeyin interfaceDelegateExecution
-
getProcessInstanceBusinessStatus
Description copied from interface:DelegateExecutionThe business status for the process instance this execution is associated with.- Specified by:
getProcessInstanceBusinessStatusin interfaceDelegateExecution
-
setProcessDefinitionId
- Specified by:
setProcessDefinitionIdin interfaceExecutionEntity
-
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
Description copied from interface:ProcessInstanceThe key of the process definition of the process instance.- Specified by:
getProcessDefinitionKeyin interfaceProcessInstance
-
setProcessDefinitionKey
- Specified by:
setProcessDefinitionKeyin interfaceExecutionEntity
-
getProcessDefinitionName
Description copied from interface:ProcessInstanceThe name of the process definition of the process instance.- Specified by:
getProcessDefinitionNamein interfaceProcessInstance
-
setProcessDefinitionName
- Specified by:
setProcessDefinitionNamein interfaceExecutionEntity
-
getProcessDefinitionVersion
Description copied from interface:ProcessInstanceThe version of the process definition of the process instance.- Specified by:
getProcessDefinitionVersionin interfaceProcessInstance
-
setProcessDefinitionVersion
- Specified by:
setProcessDefinitionVersionin interfaceExecutionEntity
-
getProcessDefinitionCategory
Description copied from interface:ProcessInstanceThe category of the process definition of the process instance.- Specified by:
getProcessDefinitionCategoryin interfaceProcessInstance
-
setProcessDefinitionCategory
- Specified by:
setProcessDefinitionCategoryin interfaceExecutionEntity
-
getDeploymentId
Description copied from interface:ProcessInstanceThe deployment id of the process definition of the process instance.- Specified by:
getDeploymentIdin interfaceProcessInstance
-
setDeploymentId
- Specified by:
setDeploymentIdin interfaceExecutionEntity
-
getProcessInstance
ensures initialization and returns the process instance.- Specified by:
getProcessInstancein interfaceExecutionEntity
-
ensureProcessInstanceInitialized
protected void ensureProcessInstanceInitialized() -
setProcessInstance
- 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 interfaceCountingExecutionEntity- Specified by:
isProcessInstanceTypein interfaceDelegateExecution
-
getParent
ensures initialization and returns the parent- Specified by:
getParentin interfaceDelegateExecution- Specified by:
getParentin interfaceExecutionEntity
-
ensureParentInitialized
protected void ensureParentInitialized() -
setParent
- Specified by:
setParentin interfaceExecutionEntity
-
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
-
setSuperExecutionId
-
getSuperExecution
- Specified by:
getSuperExecutionin interfaceExecutionEntity
-
setSuperExecution
- Specified by:
setSuperExecutionin interfaceExecutionEntity
-
ensureSuperExecutionInitialized
protected void ensureSuperExecutionInitialized() -
getSubProcessInstance
- Specified by:
getSubProcessInstancein interfaceExecutionEntity
-
setSubProcessInstance
- Specified by:
setSubProcessInstancein interfaceExecutionEntity
-
ensureSubProcessInstanceInitialized
protected void ensureSubProcessInstanceInitialized() -
getRootProcessInstance
- Specified by:
getRootProcessInstancein interfaceExecutionEntity
-
ensureRootProcessInstanceInitialized
protected void ensureRootProcessInstanceInitialized() -
setRootProcessInstance
- Specified by:
setRootProcessInstancein interfaceExecutionEntity
-
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
- Specified by:
setRootProcessInstanceIdin interfaceExecutionEntity
-
isScope
public boolean isScope()Description copied from interface:DelegateExecutionReturns whether this execution is a scope.- Specified by:
isScopein interfaceDelegateExecution
-
getIsScope
public boolean getIsScope() -
setScope
public void setScope(boolean isScope) Description copied from interface:DelegateExecutionChanges whether this execution is a scope or not.- Specified by:
setScopein interfaceDelegateExecution
-
setIsScope
public void setIsScope(boolean isScope) -
forceUpdate
public void forceUpdate()- Specified by:
forceUpdatein interfaceExecutionEntity
-
initializeVariableInstanceBackPointer
- Specified by:
initializeVariableInstanceBackPointerin classVariableScopeImpl
-
storeVariableLocal
- Overrides:
storeVariableLocalin classVariableScopeImpl
-
addLoggingSessionInfo
protected void addLoggingSessionInfo(com.fasterxml.jackson.databind.node.ObjectNode loggingNode) - Specified by:
addLoggingSessionInfoin classVariableScopeImpl
-
loadVariableInstances
- Specified by:
loadVariableInstancesin classVariableScopeImpl
-
getParentVariableScope
- Specified by:
getParentVariableScopein classVariableScopeImpl
-
setVariable
Description copied from class:VariableScopeImplThe defaultVariableScopeImpl.setVariable(String, Object)fetches all variables (for historical and backwards compatible reasons) while setting the variables. Setting the fetchAllVariables parameter to true is the default behaviour (ie fetching all variables) Setting the fetchAllVariables parameter to false does not do that.- Specified by:
setVariablein interfaceVariableScope- Overrides:
setVariablein classVariableScopeImpl
-
setVariable
public void setVariable(String variableName, Object value, ExecutionEntity sourceExecution, boolean fetchAllVariables) - Specified by:
setVariablein interfaceExecutionEntity
-
setVariableLocal
Description copied from class:VariableScopeImplThe defaultVariableScopeImpl.setVariableLocal(String, Object)fetches all variables (for historical and backwards compatible reasons) while setting the variables. Setting the fetchAllVariables parameter to true is the default behaviour (ie fetching all variables) Setting the fetchAllVariables parameter to false does not do that.- Specified by:
setVariableLocalin interfaceVariableScope- Overrides:
setVariableLocalin classVariableScopeImpl
-
setVariableLocal
public Object setVariableLocal(String variableName, Object value, ExecutionEntity sourceExecution, boolean fetchAllVariables) - Specified by:
setVariableLocalin interfaceExecutionEntity
-
createVariableInstance
- Overrides:
createVariableInstancein classVariableScopeImpl
-
createVariableInstance
protected VariableInstanceEntity createVariableInstance(String variableName, Object value, ExecutionEntity sourceExecution) -
createVariableLocal
protected void createVariableLocal(String variableName, Object value, ExecutionEntity sourceActivityExecution) -
updateVariableInstance
- Overrides:
updateVariableInstancein classVariableScopeImpl
-
updateVariableInstance
protected void updateVariableInstance(VariableInstanceEntity variableInstance, Object value, ExecutionEntity sourceExecution) -
deleteVariableInstanceForExplicitUserCall
- Overrides:
deleteVariableInstanceForExplicitUserCallin classVariableScopeImpl
-
isPropagateToHistoricVariable
protected boolean isPropagateToHistoricVariable()Description copied from class:VariableScopeImplReturn whether changes to the variables are propagated to the history storage.- Specified by:
isPropagateToHistoricVariablein classVariableScopeImpl
-
getSpecificVariable
- Specified by:
getSpecificVariablein classVariableScopeImpl
-
getSpecificVariables
- Specified by:
getSpecificVariablesin classVariableScopeImpl
-
getEventSubscriptions
- Specified by:
getEventSubscriptionsin interfaceExecutionEntity
-
ensureEventSubscriptionsInitialized
protected void ensureEventSubscriptionsInitialized() -
getIdentityLinks
- Specified by:
getIdentityLinksin interfaceExecutionEntity
-
ensureIdentityLinksInitialized
protected void ensureIdentityLinksInitialized() -
getProcessInstanceId
Description copied from interface:DelegateExecutionReference to the overall process instance- Specified by:
getProcessInstanceIdin interfaceDelegateExecution- Specified by:
getProcessInstanceIdin interfaceExecution
-
setProcessInstanceId
- Specified by:
setProcessInstanceIdin interfaceExecutionEntity
-
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
- Specified by:
setParentIdin interfaceExecutionEntity
-
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
-
setActivityId
-
isConcurrent
public boolean isConcurrent()Description copied from interface:DelegateExecutionreturns whether this execution is concurrent or not.- Specified by:
isConcurrentin interfaceDelegateExecution
-
getIsConcurrent
public boolean getIsConcurrent() -
setConcurrent
public void setConcurrent(boolean isConcurrent) Description copied from interface:DelegateExecutionchanges the concurrent indicator on this execution.- Specified by:
setConcurrentin interfaceDelegateExecution
-
setIsConcurrent
public void setIsConcurrent(boolean isConcurrent) -
isActive
public boolean isActive()Description copied from interface:DelegateExecutionreturns whether this execution is currently active.- Specified by:
isActivein interfaceDelegateExecution
-
getIsActive
public boolean getIsActive() -
setActive
public void setActive(boolean isActive) Description copied from interface:DelegateExecutionmakes this execution active or inactive.- Specified by:
setActivein interfaceDelegateExecution
-
setIsActive
public void setIsActive(boolean isActive) -
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
-
getIsEnded
public boolean getIsEnded() -
setEnded
public void setEnded(boolean isEnded) - Specified by:
setEndedin interfaceExecutionEntity
-
setIsEnded
public void setIsEnded(boolean isEnded) -
getEventName
Description copied from interface:DelegateExecutionWill contain the event name in case this execution is passed in for anExecutionListener.- Specified by:
getEventNamein interfaceDelegateExecution
-
setEventName
Description copied from interface:DelegateExecutionSets the current event (typically when execution anExecutionListener).- Specified by:
setEventNamein interfaceDelegateExecution
-
getDeleteReason
- Specified by:
getDeleteReasonin interfaceExecutionEntity
-
setDeleteReason
- 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
-
getIsEventScope
public boolean getIsEventScope() -
setEventScope
public void setEventScope(boolean isEventScope) - Specified by:
setEventScopein interfaceExecutionEntity
-
setIsEventScope
public void setIsEventScope(boolean isEventScope) -
isMultiInstanceRoot
public boolean isMultiInstanceRoot()Description copied from interface:DelegateExecutionReturns whether this execution is the root of a multi instance execution.- Specified by:
isMultiInstanceRootin interfaceDelegateExecution
-
getIsMultiInstanceRoot
public boolean getIsMultiInstanceRoot() -
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
-
setIsMultiInstanceRoot
public void setIsMultiInstanceRoot(boolean isMultiInstanceRoot) -
isCountEnabled
public boolean isCountEnabled()- Specified by:
isCountEnabledin interfaceCountingExecutionEntity
-
getIsCountEnabled
public boolean getIsCountEnabled() -
setCountEnabled
public void setCountEnabled(boolean isCountEnabled) - Specified by:
setCountEnabledin interfaceCountingExecutionEntity
-
setIsCountEnabled
public void setIsCountEnabled(boolean isCountEnabled) -
getCurrentActivityId
Description copied from interface:DelegateExecutionGets the id of the current activity.- Specified by:
getCurrentActivityIdin interfaceDelegateExecution
-
getName
Description copied from interface:ExecutionReturns the name of this execution.- Specified by:
getNamein interfaceExecution- Specified by:
getNamein interfaceProcessInstance
-
setName
- Specified by:
setNamein interfaceExecutionEntity
-
getDescription
Description copied from interface:ExecutionReturns the description of this execution.- Specified by:
getDescriptionin interfaceExecution- Specified by:
getDescriptionin interfaceProcessInstance
-
setDescription
- Specified by:
setDescriptionin interfaceExecutionEntity
-
getLocalizedName
Description copied from interface:ProcessInstanceReturns the localized name of this process instance.- Specified by:
getLocalizedNamein interfaceProcessInstance
-
setLocalizedName
- Specified by:
setLocalizedNamein interfaceExecutionEntity
-
getLocalizedDescription
Description copied from interface:ProcessInstanceReturns the localized description of this process instance.- Specified by:
getLocalizedDescriptionin interfaceProcessInstance
-
setLocalizedDescription
- Specified by:
setLocalizedDescriptionin interfaceExecutionEntity
-
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- Specified by:
getTenantIdin interfaceVariableContainer
-
setTenantId
- Specified by:
setTenantIdin interfaceExecutionEntity
-
getLockTime
- Specified by:
getLockTimein interfaceExecutionEntity
-
setLockTime
- Specified by:
setLockTimein interfaceExecutionEntity
-
getLockOwner
- Specified by:
getLockOwnerin interfaceExecutionEntity
-
setLockOwner
- Specified by:
setLockOwnerin interfaceExecutionEntity
-
getProcessVariables
Description copied from interface:ProcessInstanceReturns the process variables if requested in the process instance query- Specified by:
getProcessVariablesin interfaceProcessInstance
-
getQueryVariables
- Specified by:
getQueryVariablesin interfaceExecutionEntity
-
setQueryVariables
-
getActivityName
-
getCurrentActivityName
Description copied from interface:DelegateExecutionGets the name of the current activity.- Specified by:
getCurrentActivityNamein interfaceDelegateExecution
-
setCurrentActivityName
- Specified by:
setCurrentActivityNamein interfaceExecutionEntity
-
getStartActivityId
- Specified by:
getStartActivityIdin interfaceExecutionEntity
-
setStartActivityId
- Specified by:
setStartActivityIdin interfaceExecutionEntity
-
getStartUserId
Description copied from interface:ProcessInstanceReturns the user id of this process instance.- Specified by:
getStartUserIdin interfaceProcessInstance
-
setStartUserId
- Specified by:
setStartUserIdin interfaceExecutionEntity
-
getStartTime
Description copied from interface:ProcessInstanceReturns the start time of this process instance.- Specified by:
getStartTimein interfaceProcessInstance
-
setStartTime
- 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
-
getExternalWorkerJobCount
public int getExternalWorkerJobCount()- Specified by:
getExternalWorkerJobCountin interfaceCountingExecutionEntity
-
setExternalWorkerJobCount
public void setExternalWorkerJobCount(int externalWorkerJobCount) - Specified by:
setExternalWorkerJobCountin 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
-
getCallbackId
Description copied from interface:ProcessInstanceReturns the callback id of this process instance.- Specified by:
getCallbackIdin interfaceProcessInstance
-
setCallbackId
- Specified by:
setCallbackIdin interfaceExecutionEntity
-
getCallbackType
Description copied from interface:ProcessInstanceReturns the callback type of this process instance.- Specified by:
getCallbackTypein interfaceProcessInstance
-
setCallbackType
- Specified by:
setCallbackTypein interfaceExecutionEntity
-
getReferenceId
Description copied from interface:ExecutionIf this execution has created a case (through a case task), this will return the referenced case instance id.- Specified by:
getReferenceIdin interfaceExecution- Returns:
- the id of the optionally referenced case instance, if this execution created a case
-
setReferenceId
- Specified by:
setReferenceIdin interfaceExecutionEntity
-
getReferenceType
Description copied from interface:ExecutionIf this execution has created a case (through a case task), this will return the referenced case type (e.g. bpmn-x-to-cmmn-y type).- Specified by:
getReferenceTypein interfaceExecution- Returns:
- the type of the optionally referenced case instance, if this execution created a case
-
setReferenceType
- Specified by:
setReferenceTypein interfaceExecutionEntity
-
setPropagatedStageInstanceId
- Specified by:
setPropagatedStageInstanceIdin interfaceExecutionEntity
-
getPropagatedStageInstanceId
Description copied from interface:DelegateExecutionIf this execution runs in the context of a case and stage, this method returns it's closest parent stage instance id (the stage plan item instance id to be precise).- Specified by:
getPropagatedStageInstanceIdin interfaceDelegateExecution- Specified by:
getPropagatedStageInstanceIdin interfaceExecution- Returns:
- the stage instance id this execution belongs to or null, if this execution is not part of a case at all or is not a child element of a stage
-
getRelatedActivityInstanceId
-
resolveProcessDefinitionInfo
protected void resolveProcessDefinitionInfo() -
toString
-
getVariableServiceConfiguration
- Specified by:
getVariableServiceConfigurationin classVariableScopeImpl
-