Class AbstractVariableScope
java.lang.Object
org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
- All Implemented Interfaces:
Serializable
,VariableScope
,VariableEventDispatcher
- Direct Known Subclasses:
ConnectorVariableScope
,CoreExecution
,TaskEntity
public abstract class AbstractVariableScope
extends Object
implements Serializable, VariableScope, VariableEventDispatcher
- Author:
- Daniel Meyer, Roman Smirnov, Sebastian Menski
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncollectVariableNames
(Set<String> variableNames) void
collectVariables
(VariableMapImpl resultVariables, Collection<String> variableNames, boolean isLocal, boolean deserializeValues) void
dispatchEvent
(VariableEvent variableEvent) ELContext
abstract AbstractVariableScope
protected AbstractVariableScope
protected Object
getValueFromVariableInstance
(boolean deserializeObjectValue, CoreVariableInstance variableInstance) getVariable
(String variableName) getVariable
(String variableName, boolean deserializeObjectValue) getVariableInstance
(String variableName) protected abstract VariableInstanceFactory<CoreVariableInstance>
protected abstract List<VariableInstanceLifecycleListener<CoreVariableInstance>>
getVariableInstancesLocal
(Collection<String> variableNames) getVariableLocal
(String variableName) getVariableLocal
(String variableName, boolean deserializeObjectValue) <T extends TypedValue>
TgetVariableLocalTyped
(String variableName) <T extends TypedValue>
TgetVariableLocalTyped
(String variableName, boolean deserializeValue) getVariablesLocalTyped
(boolean deserializeObjectValues) protected abstract VariableStore<CoreVariableInstance>
getVariablesTyped
(boolean deserializeValues) <T extends TypedValue>
TgetVariableTyped
(String variableName) <T extends TypedValue>
TgetVariableTyped
(String variableName, boolean deserializeValue) boolean
hasVariable
(String variableName) boolean
hasVariableLocal
(String variableName) boolean
boolean
void
initializeVariableStore
(Map<String, Object> variables) protected void
invokeVariableLifecycleListenersCreate
(CoreVariableInstance variableInstance, AbstractVariableScope sourceScope) protected void
invokeVariableLifecycleListenersCreate
(CoreVariableInstance variableInstance, AbstractVariableScope sourceScope, List<VariableInstanceLifecycleListener<CoreVariableInstance>> lifecycleListeners) protected void
invokeVariableLifecycleListenersDelete
(CoreVariableInstance variableInstance, AbstractVariableScope sourceScope) protected void
invokeVariableLifecycleListenersDelete
(CoreVariableInstance variableInstance, AbstractVariableScope sourceScope, List<VariableInstanceLifecycleListener<CoreVariableInstance>> lifecycleListeners) protected void
invokeVariableLifecycleListenersUpdate
(CoreVariableInstance variableInstance, AbstractVariableScope sourceScope) protected void
invokeVariableLifecycleListenersUpdate
(CoreVariableInstance variableInstance, AbstractVariableScope sourceScope, List<VariableInstanceLifecycleListener<CoreVariableInstance>> lifecycleListeners) void
removeVariable
(String variableName) Removes the variable and creates a newHistoricVariableUpdateEntity
.protected void
removeVariable
(String variableName, AbstractVariableScope sourceActivityExecution) void
removeVariableLocal
(String variableName) Removes the local variable and creates a newHistoricVariableUpdateEntity
.protected void
removeVariableLocal
(String variableName, AbstractVariableScope sourceActivityExecution) void
Removes the (local) variables and creates a newHistoricVariableUpdateEntity
for each of them.void
removeVariables
(Collection<String> variableNames) Removes the variables and creates a newHistoricVariableUpdateEntity
for each of them.void
Removes the (local) variables and creates a newHistoricVariableUpdateEntity
for each of them.void
removeVariablesLocal
(Collection<String> variableNames) Removes the local variables and creates a newHistoricVariableUpdateEntity
for each of them.void
setCachedElContext
(ELContext cachedElContext) void
setVariable
(String variableName, Object value) void
setVariable
(String variableName, Object value, boolean skipJavaSerializationFormatCheck) protected void
setVariable
(String variableName, TypedValue value, AbstractVariableScope sourceActivityVariableScope) protected void
setVariable
(String variableName, TypedValue value, AbstractVariableScope sourceActivityVariableScope, boolean skipJavaSerializationFormatCheck) void
setVariableLocal
(String variableName, Object value) void
setVariableLocal
(String variableName, Object value, boolean skipJavaSerializationFormatCheck) void
setVariableLocal
(String variableName, TypedValue value, AbstractVariableScope sourceActivityExecution, boolean skipJavaSerializationFormatCheck) void
setVariables
(Map<String, ?> variables) void
setVariables
(Map<String, ?> variables, boolean skipJavaSerializationFormatCheck) void
setVariablesLocal
(Map<String, ?> variables) void
setVariablesLocal
(Map<String, ?> variables, boolean skipJavaSerializationFormatCheck)
-
Field Details
-
cachedElContext
protected ELContext cachedElContext
-
-
Constructor Details
-
AbstractVariableScope
public AbstractVariableScope()
-
-
Method Details
-
getVariableStore
-
getVariableInstanceFactory
-
getVariableInstanceLifecycleListeners
protected abstract List<VariableInstanceLifecycleListener<CoreVariableInstance>> getVariableInstanceLifecycleListeners() -
getParentVariableScope
-
initializeVariableStore
-
getVariableScopeKey
- Specified by:
getVariableScopeKey
in interfaceVariableScope
-
getVariables
- Specified by:
getVariables
in interfaceVariableScope
-
getVariablesTyped
- Specified by:
getVariablesTyped
in interfaceVariableScope
-
getVariablesTyped
- Specified by:
getVariablesTyped
in interfaceVariableScope
-
getVariablesLocal
- Specified by:
getVariablesLocal
in interfaceVariableScope
-
getVariablesLocalTyped
- Specified by:
getVariablesLocalTyped
in interfaceVariableScope
-
getVariablesLocalTyped
- Specified by:
getVariablesLocalTyped
in interfaceVariableScope
-
collectVariables
public void collectVariables(VariableMapImpl resultVariables, Collection<String> variableNames, boolean isLocal, boolean deserializeValues) -
getVariable
- Specified by:
getVariable
in interfaceVariableScope
-
getVariable
-
getVariableLocal
- Specified by:
getVariableLocal
in interfaceVariableScope
-
getVariableLocal
-
getValueFromVariableInstance
protected Object getValueFromVariableInstance(boolean deserializeObjectValue, CoreVariableInstance variableInstance) -
getVariableTyped
- Specified by:
getVariableTyped
in interfaceVariableScope
-
getVariableTyped
- Specified by:
getVariableTyped
in interfaceVariableScope
-
getVariableLocalTyped
- Specified by:
getVariableLocalTyped
in interfaceVariableScope
-
getVariableLocalTyped
public <T extends TypedValue> T getVariableLocalTyped(String variableName, boolean deserializeValue) - Specified by:
getVariableLocalTyped
in interfaceVariableScope
-
getVariableInstance
-
getVariableInstanceLocal
-
getVariableInstancesLocal
-
getVariableInstancesLocal
-
hasVariables
public boolean hasVariables()- Specified by:
hasVariables
in interfaceVariableScope
-
hasVariablesLocal
public boolean hasVariablesLocal()- Specified by:
hasVariablesLocal
in interfaceVariableScope
-
hasVariable
- Specified by:
hasVariable
in interfaceVariableScope
-
hasVariableLocal
- Specified by:
hasVariableLocal
in interfaceVariableScope
-
collectVariableNames
-
getVariableNames
- Specified by:
getVariableNames
in interfaceVariableScope
-
getVariableNamesLocal
- Specified by:
getVariableNamesLocal
in interfaceVariableScope
-
setVariables
-
setVariables
- Specified by:
setVariables
in interfaceVariableScope
-
setVariablesLocal
-
setVariablesLocal
- Specified by:
setVariablesLocal
in interfaceVariableScope
-
removeVariables
public void removeVariables()Description copied from interface:VariableScope
Removes the (local) variables and creates a newHistoricVariableUpdateEntity
for each of them.- Specified by:
removeVariables
in interfaceVariableScope
-
removeVariablesLocal
public void removeVariablesLocal()Description copied from interface:VariableScope
Removes the (local) variables and creates a newHistoricVariableUpdateEntity
for each of them.- Specified by:
removeVariablesLocal
in interfaceVariableScope
-
removeVariables
Description copied from interface:VariableScope
Removes the variables and creates a newHistoricVariableUpdateEntity
for each of them.- Specified by:
removeVariables
in interfaceVariableScope
-
removeVariablesLocal
Description copied from interface:VariableScope
Removes the local variables and creates a newHistoricVariableUpdateEntity
for each of them.- Specified by:
removeVariablesLocal
in interfaceVariableScope
-
setVariable
-
setVariable
- Specified by:
setVariable
in interfaceVariableScope
-
setVariable
protected void setVariable(String variableName, TypedValue value, AbstractVariableScope sourceActivityVariableScope, boolean skipJavaSerializationFormatCheck) -
setVariable
protected void setVariable(String variableName, TypedValue value, AbstractVariableScope sourceActivityVariableScope) -
setVariableLocal
public void setVariableLocal(String variableName, TypedValue value, AbstractVariableScope sourceActivityExecution, boolean skipJavaSerializationFormatCheck) -
invokeVariableLifecycleListenersCreate
protected void invokeVariableLifecycleListenersCreate(CoreVariableInstance variableInstance, AbstractVariableScope sourceScope) -
invokeVariableLifecycleListenersCreate
protected void invokeVariableLifecycleListenersCreate(CoreVariableInstance variableInstance, AbstractVariableScope sourceScope, List<VariableInstanceLifecycleListener<CoreVariableInstance>> lifecycleListeners) -
invokeVariableLifecycleListenersDelete
protected void invokeVariableLifecycleListenersDelete(CoreVariableInstance variableInstance, AbstractVariableScope sourceScope) -
invokeVariableLifecycleListenersDelete
protected void invokeVariableLifecycleListenersDelete(CoreVariableInstance variableInstance, AbstractVariableScope sourceScope, List<VariableInstanceLifecycleListener<CoreVariableInstance>> lifecycleListeners) -
invokeVariableLifecycleListenersUpdate
protected void invokeVariableLifecycleListenersUpdate(CoreVariableInstance variableInstance, AbstractVariableScope sourceScope) -
invokeVariableLifecycleListenersUpdate
protected void invokeVariableLifecycleListenersUpdate(CoreVariableInstance variableInstance, AbstractVariableScope sourceScope, List<VariableInstanceLifecycleListener<CoreVariableInstance>> lifecycleListeners) -
setVariableLocal
-
setVariableLocal
- Specified by:
setVariableLocal
in interfaceVariableScope
-
removeVariable
Description copied from interface:VariableScope
Removes the variable and creates a newHistoricVariableUpdateEntity
.- Specified by:
removeVariable
in interfaceVariableScope
-
removeVariable
-
removeVariableLocal
Description copied from interface:VariableScope
Removes the local variable and creates a newHistoricVariableUpdateEntity
.- Specified by:
removeVariableLocal
in interfaceVariableScope
-
getSourceActivityVariableScope
-
removeVariableLocal
protected void removeVariableLocal(String variableName, AbstractVariableScope sourceActivityExecution) -
getCachedElContext
public ELContext getCachedElContext() -
setCachedElContext
public void setCachedElContext(ELContext cachedElContext) -
dispatchEvent
- Specified by:
dispatchEvent
in interfaceVariableEventDispatcher
-