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 String
Persisted reference to the current position in the diagram within theprocessDefinitionId
.protected String
The name of the current activity positionprotected String
Persisted reference to the business key.protected String
Persisted reference to the business status.protected String
protected String
protected FlowElement
protected FlowableListener
protected int
protected String
protected String
Persisted reference to the deployment id.protected String
protected String
protected int
protected List<EventSubscriptionEntity>
protected List<ExecutionEntityImpl>
nested executions representing scopes or concurrent pathsprotected int
protected boolean
protected int
protected List<IdentityLinkEntity>
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected int
protected String
protected String
protected String
protected Date
protected String
protected FlowElement
protected ExecutionEntityImpl
the parent executionprotected String
Persisted reference to the parent of this execution.protected String
Persisted reference to the process definition category.protected String
Persisted reference to the processDefinition.protected String
Persisted reference to the process definition key.protected String
Persisted reference to the process definition name.protected Integer
Persisted reference to the process definition version.protected ExecutionEntityImpl
the process instance.protected String
Persisted reference to the process instance.protected String
The 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 String
protected String
protected ExecutionEntityImpl
protected String
protected String
protected Date
protected String
protected ExecutionEntityImpl
reference to a subprocessinstance, not-null if currently subprocess is started from this executionprotected ExecutionEntityImpl
super execution, not-null if this execution is part of a subprocessprotected String
Persisted reference to the super execution of this executionprotected int
protected int
protected int
protected String
The tenant identifier (if any)protected int
protected int
Fields inherited from class org.flowable.variable.service.impl.persistence.entity.VariableScopeImpl
cachedElContext, transientVariables, usedVariablesCache, variableInstances
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
Fields inherited from interface org.flowable.engine.impl.persistence.entity.ExecutionEntity
EXECUTION_ENTITY_START_TIME_ASC_COMPARATOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChildExecution
(ExecutionEntity executionEntity) protected void
addLoggingSessionInfo
(com.fasterxml.jackson.databind.node.ObjectNode loggingNode) protected VariableInstanceEntity
createVariableInstance
(String variableName, Object value) protected VariableInstanceEntity
createVariableInstance
(String variableName, Object value, ExecutionEntity sourceExecution) protected void
createVariableLocal
(String variableName, Object value, ExecutionEntity sourceActivityExecution) static ExecutionEntityImpl
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 void
deleteVariableInstanceForExplicitUserCall
(VariableInstanceEntity variableInstance) protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
void
Returns 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 theFlowableListener
instance matching anExecutionListener
if currently an execution listener is being execution.The BPMN element where the execution currently is at.int
The 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
.int
ensures initialization and returns the non-null executions listint
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
int
Returns 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 VariableScopeImpl
Returns 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 String
getRelatedActivityInstanceId
(ExecutionEntity sourceExecution) The 'root' process instance.protected VariableInstanceEntity
getSpecificVariable
(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.int
int
int
Returns the tenant id, if any is set before on the process definition or process instance.int
int
protected VariableServiceConfiguration
void
Inactivates this execution.protected void
initializeVariableInstanceBackPointer
(VariableInstance variableInstance) boolean
isActive()
returns whether this execution is currently active.boolean
returns whether this execution is concurrent or not.boolean
boolean
isEnded()
returns whether this execution has ended or not.boolean
boolean
Returns whether this execution is the root of a multi instance execution.boolean
returns whether this execution is a process instance or not.protected boolean
Return whether changes to the variables are propagated to the history storage.boolean
isScope()
Returns whether this execution is a scope.boolean
Indicates if the execution is suspended.protected Collection<VariableInstanceEntity>
protected void
void
setActive
(boolean isActive) makes this execution active or inactive.void
setActivityId
(String activityId) void
setBusinessKey
(String businessKey) void
setBusinessStatus
(String businessStatus) void
setCallbackId
(String callbackId) void
setCallbackType
(String callbackType) void
setConcurrent
(boolean isConcurrent) changes the concurrent indicator on this execution.void
setCountEnabled
(boolean isCountEnabled) void
setCurrentActivityName
(String activityName) void
setCurrentFlowableListener
(FlowableListener currentListener) Called when anExecutionListener
is being executed.void
setCurrentFlowElement
(FlowElement currentFlowElement) Change the current BPMN element the execution is at.void
setDeadLetterJobCount
(int deadLetterJobCount) void
setDeleteReason
(String deleteReason) void
setDeploymentId
(String deploymentId) void
setDescription
(String description) void
setEnded
(boolean isEnded) void
setEventName
(String eventName) Sets the current event (typically when execution anExecutionListener
).void
setEventScope
(boolean isEventScope) void
setEventSubscriptionCount
(int eventSubscriptionCount) void
setExternalWorkerJobCount
(int externalWorkerJobCount) void
setIdentityLinkCount
(int identityLinkCount) void
setIsActive
(boolean isActive) void
setIsConcurrent
(boolean isConcurrent) void
setIsCountEnabled
(boolean isCountEnabled) void
setIsEnded
(boolean isEnded) void
setIsEventScope
(boolean isEventScope) void
setIsMultiInstanceRoot
(boolean isMultiInstanceRoot) void
setIsScope
(boolean isScope) void
setJobCount
(int jobCount) void
setLocalizedDescription
(String localizedDescription) void
setLocalizedName
(String localizedName) void
setLockOwner
(String lockOwner) void
setLockTime
(Date lockTime) void
setMultiInstanceRoot
(boolean isMultiInstanceRoot) Changes whether this execution is a multi instance root or not.void
void
setOriginatingCurrentFlowElement
(FlowElement flowElement) void
setParent
(ExecutionEntity parent) void
setParentId
(String parentId) void
setProcessDefinitionCategory
(String processDefinitionCategory) 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
setPropagatedStageInstanceId
(String propagatedStageInstanceId) void
setQueryVariables
(List<VariableInstanceEntity> queryVariables) void
setReferenceId
(String referenceId) void
setReferenceType
(String referenceType) void
setRootProcessInstance
(ExecutionEntity rootProcessInstance) void
setRootProcessInstanceId
(String rootProcessInstanceId) void
setScope
(boolean isScope) Changes whether this execution is a scope or not.void
setStartActivityId
(String startActivityId) void
setStartTime
(Date startTime) void
setStartUserId
(String startUserId) void
setSubProcessInstance
(ExecutionEntity subProcessInstance) void
setSuperExecution
(ExecutionEntity superExecution) void
setSuperExecutionId
(String superExecutionId) void
setSuspendedJobCount
(int suspendedJobCount) void
setSuspensionState
(int suspensionState) void
setTaskCount
(int taskCount) void
setTenantId
(String tenantId) void
setTimerJobCount
(int timerJobCount) void
setVariable
(String variableName, Object value, boolean fetchAllVariables) The defaultVariableScopeImpl.setVariable(String, Object)
fetches all variables (for historical and backwards compatible reasons) while setting the variables.void
setVariable
(String variableName, Object value, ExecutionEntity sourceExecution, boolean fetchAllVariables) void
setVariableCount
(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 boolean
storeVariableLocal
(String variableName) toString()
protected void
updateVariableInstance
(VariableInstanceEntity variableInstance, Object value) protected void
updateVariableInstance
(VariableInstanceEntity variableInstance, Object value, ExecutionEntity sourceExecution) Methods inherited from class org.flowable.engine.impl.persistence.entity.AbstractBpmnEngineVariableScopeEntity
getIdPrefix
Methods 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, setVariablesLocal
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdated
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.flowable.engine.delegate.DelegateExecution
getId
Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdated
Methods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
Methods 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:Entity
Returns 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:
getPersistentState
in interfaceEntity
-
snapshotReadOnly
Description copied from interface:DelegateExecution
Create a snapshot read only delegate execution of this delegate execution.- Specified by:
snapshotReadOnly
in interfaceDelegateExecution
- Returns:
- a
ReadOnlyDelegateExecution
-
getCurrentFlowElement
Description copied from interface:DelegateExecution
The BPMN element where the execution currently is at.- Specified by:
getCurrentFlowElement
in interfaceDelegateExecution
-
setCurrentFlowElement
Description copied from interface:DelegateExecution
Change the current BPMN element the execution is at.- Specified by:
setCurrentFlowElement
in interfaceDelegateExecution
-
getCurrentFlowableListener
Description copied from interface:DelegateExecution
Returns theFlowableListener
instance matching anExecutionListener
if currently an execution listener is being execution. Returns null otherwise.- Specified by:
getCurrentFlowableListener
in interfaceDelegateExecution
-
setCurrentFlowableListener
Description copied from interface:DelegateExecution
Called when anExecutionListener
is being executed.- Specified by:
setCurrentFlowableListener
in interfaceDelegateExecution
-
getOriginatingCurrentFlowElement
- Specified by:
getOriginatingCurrentFlowElement
in interfaceExecutionEntity
-
setOriginatingCurrentFlowElement
- Specified by:
setOriginatingCurrentFlowElement
in interfaceExecutionEntity
-
getExecutions
ensures initialization and returns the non-null executions list- Specified by:
getExecutions
in interfaceDelegateExecution
- Specified by:
getExecutions
in interfaceExecutionEntity
-
addChildExecution
- Specified by:
addChildExecution
in interfaceExecutionEntity
-
ensureExecutionsInitialized
protected void ensureExecutionsInitialized() -
getBusinessKey
Description copied from interface:ProcessInstance
The business key of this process instance.- Specified by:
getBusinessKey
in interfaceProcessInstance
-
setBusinessKey
- Specified by:
setBusinessKey
in interfaceExecutionEntity
-
getBusinessStatus
Description copied from interface:ProcessInstance
The business status of this process instance.- Specified by:
getBusinessStatus
in interfaceProcessInstance
-
setBusinessStatus
- Specified by:
setBusinessStatus
in interfaceExecutionEntity
-
getProcessInstanceBusinessKey
Description copied from interface:DelegateExecution
The business key for the process instance this execution is associated with.- Specified by:
getProcessInstanceBusinessKey
in interfaceDelegateExecution
-
getProcessInstanceBusinessStatus
Description copied from interface:DelegateExecution
The business status for the process instance this execution is associated with.- Specified by:
getProcessInstanceBusinessStatus
in interfaceDelegateExecution
-
setProcessDefinitionId
- Specified by:
setProcessDefinitionId
in interfaceExecutionEntity
-
getProcessDefinitionId
Description copied from interface:DelegateExecution
The process definition key for the process instance this execution is associated with.- Specified by:
getProcessDefinitionId
in interfaceDelegateExecution
- Specified by:
getProcessDefinitionId
in interfaceProcessInstance
-
getProcessDefinitionKey
Description copied from interface:ProcessInstance
The key of the process definition of the process instance.- Specified by:
getProcessDefinitionKey
in interfaceProcessInstance
-
setProcessDefinitionKey
- Specified by:
setProcessDefinitionKey
in interfaceExecutionEntity
-
getProcessDefinitionName
Description copied from interface:ProcessInstance
The name of the process definition of the process instance.- Specified by:
getProcessDefinitionName
in interfaceProcessInstance
-
setProcessDefinitionName
- Specified by:
setProcessDefinitionName
in interfaceExecutionEntity
-
getProcessDefinitionVersion
Description copied from interface:ProcessInstance
The version of the process definition of the process instance.- Specified by:
getProcessDefinitionVersion
in interfaceProcessInstance
-
setProcessDefinitionVersion
- Specified by:
setProcessDefinitionVersion
in interfaceExecutionEntity
-
getProcessDefinitionCategory
Description copied from interface:ProcessInstance
The category of the process definition of the process instance.- Specified by:
getProcessDefinitionCategory
in interfaceProcessInstance
-
setProcessDefinitionCategory
- Specified by:
setProcessDefinitionCategory
in interfaceExecutionEntity
-
getDeploymentId
Description copied from interface:ProcessInstance
The deployment id of the process definition of the process instance.- Specified by:
getDeploymentId
in interfaceProcessInstance
-
setDeploymentId
- Specified by:
setDeploymentId
in interfaceExecutionEntity
-
getProcessInstance
ensures initialization and returns the process instance.- Specified by:
getProcessInstance
in interfaceExecutionEntity
-
ensureProcessInstanceInitialized
protected void ensureProcessInstanceInitialized() -
setProcessInstance
- Specified by:
setProcessInstance
in interfaceExecutionEntity
-
isProcessInstanceType
public boolean isProcessInstanceType()Description copied from interface:DelegateExecution
returns whether this execution is a process instance or not.- Specified by:
isProcessInstanceType
in interfaceCountingExecutionEntity
- Specified by:
isProcessInstanceType
in interfaceDelegateExecution
-
getParent
ensures initialization and returns the parent- Specified by:
getParent
in interfaceDelegateExecution
- Specified by:
getParent
in interfaceExecutionEntity
-
ensureParentInitialized
protected void ensureParentInitialized() -
setParent
- Specified by:
setParent
in interfaceExecutionEntity
-
getSuperExecutionId
Description copied from interface:DelegateExecution
Gets the id of the calling execution. If not null, the execution is part of a subprocess.- Specified by:
getSuperExecutionId
in interfaceDelegateExecution
- Specified by:
getSuperExecutionId
in interfaceExecution
-
setSuperExecutionId
-
getSuperExecution
- Specified by:
getSuperExecution
in interfaceExecutionEntity
-
setSuperExecution
- Specified by:
setSuperExecution
in interfaceExecutionEntity
-
ensureSuperExecutionInitialized
protected void ensureSuperExecutionInitialized() -
getSubProcessInstance
- Specified by:
getSubProcessInstance
in interfaceExecutionEntity
-
setSubProcessInstance
- Specified by:
setSubProcessInstance
in interfaceExecutionEntity
-
ensureSubProcessInstanceInitialized
protected void ensureSubProcessInstanceInitialized() -
getRootProcessInstance
- Specified by:
getRootProcessInstance
in interfaceExecutionEntity
-
ensureRootProcessInstanceInitialized
protected void ensureRootProcessInstanceInitialized() -
setRootProcessInstance
- Specified by:
setRootProcessInstance
in interfaceExecutionEntity
-
getRootProcessInstanceId
Description copied from interface:DelegateExecution
The '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:
getRootProcessInstanceId
in interfaceDelegateExecution
- Specified by:
getRootProcessInstanceId
in interfaceExecution
-
setRootProcessInstanceId
- Specified by:
setRootProcessInstanceId
in interfaceExecutionEntity
-
isScope
public boolean isScope()Description copied from interface:DelegateExecution
Returns whether this execution is a scope.- Specified by:
isScope
in interfaceDelegateExecution
-
getIsScope
public boolean getIsScope() -
setScope
public void setScope(boolean isScope) Description copied from interface:DelegateExecution
Changes whether this execution is a scope or not.- Specified by:
setScope
in interfaceDelegateExecution
-
setIsScope
public void setIsScope(boolean isScope) -
forceUpdate
public void forceUpdate()- Specified by:
forceUpdate
in interfaceExecutionEntity
-
initializeVariableInstanceBackPointer
- Specified by:
initializeVariableInstanceBackPointer
in classVariableScopeImpl
-
storeVariableLocal
- Overrides:
storeVariableLocal
in classVariableScopeImpl
-
addLoggingSessionInfo
protected void addLoggingSessionInfo(com.fasterxml.jackson.databind.node.ObjectNode loggingNode) - Specified by:
addLoggingSessionInfo
in classVariableScopeImpl
-
loadVariableInstances
- Specified by:
loadVariableInstances
in classVariableScopeImpl
-
getParentVariableScope
- Specified by:
getParentVariableScope
in classVariableScopeImpl
-
setVariable
Description copied from class:VariableScopeImpl
The 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:
setVariable
in interfaceVariableScope
- Overrides:
setVariable
in classVariableScopeImpl
-
setVariable
public void setVariable(String variableName, Object value, ExecutionEntity sourceExecution, boolean fetchAllVariables) - Specified by:
setVariable
in interfaceExecutionEntity
-
setVariableLocal
Description copied from class:VariableScopeImpl
The 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:
setVariableLocal
in interfaceVariableScope
- Overrides:
setVariableLocal
in classVariableScopeImpl
-
setVariableLocal
public Object setVariableLocal(String variableName, Object value, ExecutionEntity sourceExecution, boolean fetchAllVariables) - Specified by:
setVariableLocal
in interfaceExecutionEntity
-
createVariableInstance
- Overrides:
createVariableInstance
in classVariableScopeImpl
-
createVariableInstance
protected VariableInstanceEntity createVariableInstance(String variableName, Object value, ExecutionEntity sourceExecution) -
createVariableLocal
protected void createVariableLocal(String variableName, Object value, ExecutionEntity sourceActivityExecution) -
updateVariableInstance
- Overrides:
updateVariableInstance
in classVariableScopeImpl
-
updateVariableInstance
protected void updateVariableInstance(VariableInstanceEntity variableInstance, Object value, ExecutionEntity sourceExecution) -
deleteVariableInstanceForExplicitUserCall
- Overrides:
deleteVariableInstanceForExplicitUserCall
in classVariableScopeImpl
-
isPropagateToHistoricVariable
protected boolean isPropagateToHistoricVariable()Description copied from class:VariableScopeImpl
Return whether changes to the variables are propagated to the history storage.- Specified by:
isPropagateToHistoricVariable
in classVariableScopeImpl
-
getSpecificVariable
- Specified by:
getSpecificVariable
in classVariableScopeImpl
-
getSpecificVariables
- Specified by:
getSpecificVariables
in classVariableScopeImpl
-
getEventSubscriptions
- Specified by:
getEventSubscriptions
in interfaceExecutionEntity
-
ensureEventSubscriptionsInitialized
protected void ensureEventSubscriptionsInitialized() -
getIdentityLinks
- Specified by:
getIdentityLinks
in interfaceExecutionEntity
-
ensureIdentityLinksInitialized
protected void ensureIdentityLinksInitialized() -
getProcessInstanceId
Description copied from interface:DelegateExecution
Reference to the overall process instance- Specified by:
getProcessInstanceId
in interfaceDelegateExecution
- Specified by:
getProcessInstanceId
in interfaceExecution
-
setProcessInstanceId
- Specified by:
setProcessInstanceId
in interfaceExecutionEntity
-
getParentId
Description copied from interface:DelegateExecution
Gets the id of the parent of this execution. If null, the execution represents a process-instance.- Specified by:
getParentId
in interfaceDelegateExecution
- Specified by:
getParentId
in interfaceExecution
-
setParentId
- Specified by:
setParentId
in interfaceExecutionEntity
-
getActivityId
Description copied from interface:Execution
Returns 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:
getActivityId
in interfaceExecution
-
setActivityId
-
isConcurrent
public boolean isConcurrent()Description copied from interface:DelegateExecution
returns whether this execution is concurrent or not.- Specified by:
isConcurrent
in interfaceDelegateExecution
-
getIsConcurrent
public boolean getIsConcurrent() -
setConcurrent
public void setConcurrent(boolean isConcurrent) Description copied from interface:DelegateExecution
changes the concurrent indicator on this execution.- Specified by:
setConcurrent
in interfaceDelegateExecution
-
setIsConcurrent
public void setIsConcurrent(boolean isConcurrent) -
isActive
public boolean isActive()Description copied from interface:DelegateExecution
returns whether this execution is currently active.- Specified by:
isActive
in interfaceDelegateExecution
-
getIsActive
public boolean getIsActive() -
setActive
public void setActive(boolean isActive) Description copied from interface:DelegateExecution
makes this execution active or inactive.- Specified by:
setActive
in interfaceDelegateExecution
-
setIsActive
public void setIsActive(boolean isActive) -
inactivate
public void inactivate()Description copied from interface:DelegateExecution
Inactivates this execution. This is useful for example in a join: the execution still exists, but it is not longer active.- Specified by:
inactivate
in interfaceDelegateExecution
-
isEnded
public boolean isEnded()Description copied from interface:DelegateExecution
returns whether this execution has ended or not.- Specified by:
isEnded
in interfaceDelegateExecution
- Specified by:
isEnded
in interfaceExecution
-
getIsEnded
public boolean getIsEnded() -
setEnded
public void setEnded(boolean isEnded) - Specified by:
setEnded
in interfaceExecutionEntity
-
setIsEnded
public void setIsEnded(boolean isEnded) -
getEventName
Description copied from interface:DelegateExecution
Will contain the event name in case this execution is passed in for anExecutionListener
.- Specified by:
getEventName
in interfaceDelegateExecution
-
setEventName
Description copied from interface:DelegateExecution
Sets the current event (typically when execution anExecutionListener
).- Specified by:
setEventName
in interfaceDelegateExecution
-
getDeleteReason
- Specified by:
getDeleteReason
in interfaceExecutionEntity
-
setDeleteReason
- Specified by:
setDeleteReason
in interfaceExecutionEntity
-
getSuspensionState
public int getSuspensionState()- Specified by:
getSuspensionState
in interfaceExecutionEntity
-
setSuspensionState
public void setSuspensionState(int suspensionState) - Specified by:
setSuspensionState
in interfaceExecutionEntity
-
isSuspended
public boolean isSuspended()Description copied from interface:Execution
Indicates if the execution is suspended.- Specified by:
isSuspended
in interfaceExecution
- Specified by:
isSuspended
in interfaceProcessInstance
-
isEventScope
public boolean isEventScope()- Specified by:
isEventScope
in interfaceExecutionEntity
-
getIsEventScope
public boolean getIsEventScope() -
setEventScope
public void setEventScope(boolean isEventScope) - Specified by:
setEventScope
in interfaceExecutionEntity
-
setIsEventScope
public void setIsEventScope(boolean isEventScope) -
isMultiInstanceRoot
public boolean isMultiInstanceRoot()Description copied from interface:DelegateExecution
Returns whether this execution is the root of a multi instance execution.- Specified by:
isMultiInstanceRoot
in interfaceDelegateExecution
-
getIsMultiInstanceRoot
public boolean getIsMultiInstanceRoot() -
setMultiInstanceRoot
public void setMultiInstanceRoot(boolean isMultiInstanceRoot) Description copied from interface:DelegateExecution
Changes whether this execution is a multi instance root or not.- Specified by:
setMultiInstanceRoot
in interfaceDelegateExecution
-
setIsMultiInstanceRoot
public void setIsMultiInstanceRoot(boolean isMultiInstanceRoot) -
isCountEnabled
public boolean isCountEnabled()- Specified by:
isCountEnabled
in interfaceCountingExecutionEntity
-
getIsCountEnabled
public boolean getIsCountEnabled() -
setCountEnabled
public void setCountEnabled(boolean isCountEnabled) - Specified by:
setCountEnabled
in interfaceCountingExecutionEntity
-
setIsCountEnabled
public void setIsCountEnabled(boolean isCountEnabled) -
getCurrentActivityId
Description copied from interface:DelegateExecution
Gets the id of the current activity.- Specified by:
getCurrentActivityId
in interfaceDelegateExecution
-
getName
Description copied from interface:Execution
Returns the name of this execution.- Specified by:
getName
in interfaceExecution
- Specified by:
getName
in interfaceProcessInstance
-
setName
- Specified by:
setName
in interfaceExecutionEntity
-
getDescription
Description copied from interface:Execution
Returns the description of this execution.- Specified by:
getDescription
in interfaceExecution
- Specified by:
getDescription
in interfaceProcessInstance
-
setDescription
- Specified by:
setDescription
in interfaceExecutionEntity
-
getLocalizedName
Description copied from interface:ProcessInstance
Returns the localized name of this process instance.- Specified by:
getLocalizedName
in interfaceProcessInstance
-
setLocalizedName
- Specified by:
setLocalizedName
in interfaceExecutionEntity
-
getLocalizedDescription
Description copied from interface:ProcessInstance
Returns the localized description of this process instance.- Specified by:
getLocalizedDescription
in interfaceProcessInstance
-
setLocalizedDescription
- Specified by:
setLocalizedDescription
in interfaceExecutionEntity
-
getTenantId
Description copied from interface:DelegateExecution
Returns the tenant id, if any is set before on the process definition or process instance.- Specified by:
getTenantId
in interfaceDelegateExecution
- Specified by:
getTenantId
in interfaceExecution
- Specified by:
getTenantId
in interfaceProcessInstance
- Specified by:
getTenantId
in interfaceVariableContainer
-
setTenantId
- Specified by:
setTenantId
in interfaceExecutionEntity
-
getLockTime
- Specified by:
getLockTime
in interfaceExecutionEntity
-
setLockTime
- Specified by:
setLockTime
in interfaceExecutionEntity
-
getLockOwner
- Specified by:
getLockOwner
in interfaceExecutionEntity
-
setLockOwner
- Specified by:
setLockOwner
in interfaceExecutionEntity
-
getProcessVariables
Description copied from interface:ProcessInstance
Returns the process variables if requested in the process instance query- Specified by:
getProcessVariables
in interfaceProcessInstance
-
getQueryVariables
- Specified by:
getQueryVariables
in interfaceExecutionEntity
-
setQueryVariables
-
getActivityName
-
getCurrentActivityName
Description copied from interface:DelegateExecution
Gets the name of the current activity.- Specified by:
getCurrentActivityName
in interfaceDelegateExecution
-
setCurrentActivityName
- Specified by:
setCurrentActivityName
in interfaceExecutionEntity
-
getStartActivityId
- Specified by:
getStartActivityId
in interfaceExecutionEntity
-
setStartActivityId
- Specified by:
setStartActivityId
in interfaceExecutionEntity
-
getStartUserId
Description copied from interface:ProcessInstance
Returns the user id of this process instance.- Specified by:
getStartUserId
in interfaceProcessInstance
-
setStartUserId
- Specified by:
setStartUserId
in interfaceExecutionEntity
-
getStartTime
Description copied from interface:ProcessInstance
Returns the start time of this process instance.- Specified by:
getStartTime
in interfaceProcessInstance
-
setStartTime
- Specified by:
setStartTime
in interfaceExecutionEntity
-
getEventSubscriptionCount
public int getEventSubscriptionCount()- Specified by:
getEventSubscriptionCount
in interfaceCountingExecutionEntity
-
setEventSubscriptionCount
public void setEventSubscriptionCount(int eventSubscriptionCount) - Specified by:
setEventSubscriptionCount
in interfaceCountingExecutionEntity
-
getTaskCount
public int getTaskCount()- Specified by:
getTaskCount
in interfaceCountingExecutionEntity
-
setTaskCount
public void setTaskCount(int taskCount) - Specified by:
setTaskCount
in interfaceCountingExecutionEntity
-
getJobCount
public int getJobCount()- Specified by:
getJobCount
in interfaceCountingExecutionEntity
-
setJobCount
public void setJobCount(int jobCount) - Specified by:
setJobCount
in interfaceCountingExecutionEntity
-
getTimerJobCount
public int getTimerJobCount()- Specified by:
getTimerJobCount
in interfaceCountingExecutionEntity
-
setTimerJobCount
public void setTimerJobCount(int timerJobCount) - Specified by:
setTimerJobCount
in interfaceCountingExecutionEntity
-
getSuspendedJobCount
public int getSuspendedJobCount()- Specified by:
getSuspendedJobCount
in interfaceCountingExecutionEntity
-
setSuspendedJobCount
public void setSuspendedJobCount(int suspendedJobCount) - Specified by:
setSuspendedJobCount
in interfaceCountingExecutionEntity
-
getDeadLetterJobCount
public int getDeadLetterJobCount()- Specified by:
getDeadLetterJobCount
in interfaceCountingExecutionEntity
-
setDeadLetterJobCount
public void setDeadLetterJobCount(int deadLetterJobCount) - Specified by:
setDeadLetterJobCount
in interfaceCountingExecutionEntity
-
getExternalWorkerJobCount
public int getExternalWorkerJobCount()- Specified by:
getExternalWorkerJobCount
in interfaceCountingExecutionEntity
-
setExternalWorkerJobCount
public void setExternalWorkerJobCount(int externalWorkerJobCount) - Specified by:
setExternalWorkerJobCount
in interfaceCountingExecutionEntity
-
getVariableCount
public int getVariableCount()- Specified by:
getVariableCount
in interfaceCountingExecutionEntity
-
setVariableCount
public void setVariableCount(int variableCount) - Specified by:
setVariableCount
in interfaceCountingExecutionEntity
-
getIdentityLinkCount
public int getIdentityLinkCount()- Specified by:
getIdentityLinkCount
in interfaceCountingExecutionEntity
-
setIdentityLinkCount
public void setIdentityLinkCount(int identityLinkCount) - Specified by:
setIdentityLinkCount
in interfaceCountingExecutionEntity
-
getCallbackId
Description copied from interface:ProcessInstance
Returns the callback id of this process instance.- Specified by:
getCallbackId
in interfaceProcessInstance
-
setCallbackId
- Specified by:
setCallbackId
in interfaceExecutionEntity
-
getCallbackType
Description copied from interface:ProcessInstance
Returns the callback type of this process instance.- Specified by:
getCallbackType
in interfaceProcessInstance
-
setCallbackType
- Specified by:
setCallbackType
in interfaceExecutionEntity
-
getReferenceId
Description copied from interface:Execution
If this execution has created a case (through a case task), this will return the referenced case instance id.- Specified by:
getReferenceId
in interfaceExecution
- Returns:
- the id of the optionally referenced case instance, if this execution created a case
-
setReferenceId
- Specified by:
setReferenceId
in interfaceExecutionEntity
-
getReferenceType
Description copied from interface:Execution
If 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:
getReferenceType
in interfaceExecution
- Returns:
- the type of the optionally referenced case instance, if this execution created a case
-
setReferenceType
- Specified by:
setReferenceType
in interfaceExecutionEntity
-
setPropagatedStageInstanceId
- Specified by:
setPropagatedStageInstanceId
in interfaceExecutionEntity
-
getPropagatedStageInstanceId
Description copied from interface:DelegateExecution
If 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:
getPropagatedStageInstanceId
in interfaceDelegateExecution
- Specified by:
getPropagatedStageInstanceId
in 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:
getVariableServiceConfiguration
in classVariableScopeImpl
-