public abstract class AbstractVariableScope extends Object implements Serializable, VariableScope, VariableEventDispatcher
Modifier and Type | Field and Description |
---|---|
protected ELContext |
cachedElContext |
Constructor and Description |
---|
AbstractVariableScope() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkJavaSerialization(String variableName,
org.camunda.bpm.engine.variable.value.TypedValue value)
Checks, if Java serialization will be used and if it is allowed to be used.
|
protected Set<String> |
collectVariableNames(Set<String> variableNames) |
void |
collectVariables(org.camunda.bpm.engine.variable.impl.VariableMapImpl resultVariables,
Collection<String> variableNames,
boolean isLocal,
boolean deserializeValues) |
void |
dispatchEvent(VariableEvent variableEvent) |
ELContext |
getCachedElContext() |
abstract AbstractVariableScope |
getParentVariableScope() |
protected AbstractVariableScope |
getSourceActivityVariableScope() |
protected Object |
getValueFromVariableInstance(boolean deserializeObjectValue,
CoreVariableInstance variableInstance) |
Object |
getVariable(String variableName) |
Object |
getVariable(String variableName,
boolean deserializeObjectValue) |
CoreVariableInstance |
getVariableInstance(String variableName) |
protected abstract VariableInstanceFactory<CoreVariableInstance> |
getVariableInstanceFactory() |
protected abstract List<VariableInstanceLifecycleListener<CoreVariableInstance>> |
getVariableInstanceLifecycleListeners() |
CoreVariableInstance |
getVariableInstanceLocal(String name) |
List<CoreVariableInstance> |
getVariableInstancesLocal() |
List<CoreVariableInstance> |
getVariableInstancesLocal(Collection<String> variableNames) |
Object |
getVariableLocal(String variableName) |
Object |
getVariableLocal(String variableName,
boolean deserializeObjectValue) |
<T extends org.camunda.bpm.engine.variable.value.TypedValue> |
getVariableLocalTyped(String variableName) |
<T extends org.camunda.bpm.engine.variable.value.TypedValue> |
getVariableLocalTyped(String variableName,
boolean deserializeValue) |
Set<String> |
getVariableNames() |
Set<String> |
getVariableNamesLocal() |
org.camunda.bpm.engine.variable.impl.VariableMapImpl |
getVariables() |
String |
getVariableScopeKey() |
org.camunda.bpm.engine.variable.impl.VariableMapImpl |
getVariablesLocal() |
org.camunda.bpm.engine.variable.impl.VariableMapImpl |
getVariablesLocalTyped() |
org.camunda.bpm.engine.variable.impl.VariableMapImpl |
getVariablesLocalTyped(boolean deserializeObjectValues) |
protected abstract VariableStore<CoreVariableInstance> |
getVariableStore() |
org.camunda.bpm.engine.variable.impl.VariableMapImpl |
getVariablesTyped() |
org.camunda.bpm.engine.variable.impl.VariableMapImpl |
getVariablesTyped(boolean deserializeValues) |
<T extends org.camunda.bpm.engine.variable.value.TypedValue> |
getVariableTyped(String variableName) |
<T extends org.camunda.bpm.engine.variable.value.TypedValue> |
getVariableTyped(String variableName,
boolean deserializeValue) |
boolean |
hasVariable(String variableName) |
boolean |
hasVariableLocal(String variableName) |
boolean |
hasVariables() |
boolean |
hasVariablesLocal() |
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 new
HistoricVariableUpdateEntity . |
protected void |
removeVariable(String variableName,
AbstractVariableScope sourceActivityExecution) |
void |
removeVariableLocal(String variableName)
Removes the local variable and creates a new
HistoricVariableUpdateEntity . |
protected void |
removeVariableLocal(String variableName,
AbstractVariableScope sourceActivityExecution) |
void |
removeVariables()
Removes the (local) variables and creates a new
HistoricVariableUpdateEntity for each of them. |
void |
removeVariables(Collection<String> variableNames)
Removes the variables and creates a new
HistoricVariableUpdateEntity for each of them. |
void |
removeVariablesLocal()
Removes the (local) variables and creates a new
HistoricVariableUpdateEntity for each of them. |
void |
removeVariablesLocal(Collection<String> variableNames)
Removes the local variables and creates a new
HistoricVariableUpdateEntity for each of them. |
void |
setCachedElContext(ELContext cachedElContext) |
void |
setVariable(String variableName,
Object value) |
protected void |
setVariable(String variableName,
org.camunda.bpm.engine.variable.value.TypedValue value,
AbstractVariableScope sourceActivityVariableScope) |
void |
setVariableLocal(String variableName,
Object value) |
void |
setVariableLocal(String variableName,
org.camunda.bpm.engine.variable.value.TypedValue value,
AbstractVariableScope sourceActivityExecution) |
void |
setVariableLocalTransient(String variableName,
Object value)
Sets a variable in the local scope.
|
void |
setVariableLocalTransient(String variableName,
Object value,
AbstractVariableScope sourceActivityVariableScope) |
void |
setVariables(Map<String,? extends Object> variables) |
void |
setVariablesLocal(Map<String,? extends Object> variables) |
protected ELContext cachedElContext
protected abstract VariableStore<CoreVariableInstance> getVariableStore()
protected abstract VariableInstanceFactory<CoreVariableInstance> getVariableInstanceFactory()
protected abstract List<VariableInstanceLifecycleListener<CoreVariableInstance>> getVariableInstanceLifecycleListeners()
public abstract AbstractVariableScope getParentVariableScope()
public String getVariableScopeKey()
getVariableScopeKey
in interface VariableScope
public org.camunda.bpm.engine.variable.impl.VariableMapImpl getVariables()
getVariables
in interface VariableScope
public org.camunda.bpm.engine.variable.impl.VariableMapImpl getVariablesTyped()
getVariablesTyped
in interface VariableScope
public org.camunda.bpm.engine.variable.impl.VariableMapImpl getVariablesTyped(boolean deserializeValues)
getVariablesTyped
in interface VariableScope
public org.camunda.bpm.engine.variable.impl.VariableMapImpl getVariablesLocal()
getVariablesLocal
in interface VariableScope
public org.camunda.bpm.engine.variable.impl.VariableMapImpl getVariablesLocalTyped()
getVariablesLocalTyped
in interface VariableScope
public org.camunda.bpm.engine.variable.impl.VariableMapImpl getVariablesLocalTyped(boolean deserializeObjectValues)
getVariablesLocalTyped
in interface VariableScope
public void collectVariables(org.camunda.bpm.engine.variable.impl.VariableMapImpl resultVariables, Collection<String> variableNames, boolean isLocal, boolean deserializeValues)
public Object getVariable(String variableName)
getVariable
in interface VariableScope
public Object getVariableLocal(String variableName)
getVariableLocal
in interface VariableScope
public Object getVariableLocal(String variableName, boolean deserializeObjectValue)
protected Object getValueFromVariableInstance(boolean deserializeObjectValue, CoreVariableInstance variableInstance)
public <T extends org.camunda.bpm.engine.variable.value.TypedValue> T getVariableTyped(String variableName)
getVariableTyped
in interface VariableScope
public <T extends org.camunda.bpm.engine.variable.value.TypedValue> T getVariableTyped(String variableName, boolean deserializeValue)
getVariableTyped
in interface VariableScope
public <T extends org.camunda.bpm.engine.variable.value.TypedValue> T getVariableLocalTyped(String variableName)
getVariableLocalTyped
in interface VariableScope
public <T extends org.camunda.bpm.engine.variable.value.TypedValue> T getVariableLocalTyped(String variableName, boolean deserializeValue)
getVariableLocalTyped
in interface VariableScope
public CoreVariableInstance getVariableInstance(String variableName)
public CoreVariableInstance getVariableInstanceLocal(String name)
public List<CoreVariableInstance> getVariableInstancesLocal()
public List<CoreVariableInstance> getVariableInstancesLocal(Collection<String> variableNames)
public boolean hasVariables()
hasVariables
in interface VariableScope
public boolean hasVariablesLocal()
hasVariablesLocal
in interface VariableScope
public boolean hasVariable(String variableName)
hasVariable
in interface VariableScope
public boolean hasVariableLocal(String variableName)
hasVariableLocal
in interface VariableScope
public Set<String> getVariableNames()
getVariableNames
in interface VariableScope
public Set<String> getVariableNamesLocal()
getVariableNamesLocal
in interface VariableScope
public void setVariables(Map<String,? extends Object> variables)
setVariables
in interface VariableScope
public void setVariablesLocal(Map<String,? extends Object> variables)
setVariablesLocal
in interface VariableScope
public void removeVariables()
VariableScope
HistoricVariableUpdateEntity
for each of them.removeVariables
in interface VariableScope
public void removeVariablesLocal()
VariableScope
HistoricVariableUpdateEntity
for each of them.removeVariablesLocal
in interface VariableScope
public void removeVariables(Collection<String> variableNames)
VariableScope
HistoricVariableUpdateEntity
for each of them.removeVariables
in interface VariableScope
public void removeVariablesLocal(Collection<String> variableNames)
VariableScope
HistoricVariableUpdateEntity
for each of them.removeVariablesLocal
in interface VariableScope
public void setVariable(String variableName, Object value)
setVariable
in interface VariableScope
protected void setVariable(String variableName, org.camunda.bpm.engine.variable.value.TypedValue value, AbstractVariableScope sourceActivityVariableScope)
public void setVariableLocal(String variableName, org.camunda.bpm.engine.variable.value.TypedValue value, AbstractVariableScope sourceActivityExecution)
protected void checkJavaSerialization(String variableName, org.camunda.bpm.engine.variable.value.TypedValue value)
variableName
- value
- 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)
public void setVariableLocal(String variableName, Object value)
setVariableLocal
in interface VariableScope
public void setVariableLocalTransient(String variableName, Object value)
setVariableLocal(String, Object)
, the variable is transient that
means it will not be stored in the data base. For example, a transient
variable can be used for a result variable that is only available for
output mapping.public void setVariableLocalTransient(String variableName, Object value, AbstractVariableScope sourceActivityVariableScope)
public void removeVariable(String variableName)
VariableScope
HistoricVariableUpdateEntity
.removeVariable
in interface VariableScope
protected void removeVariable(String variableName, AbstractVariableScope sourceActivityExecution)
public void removeVariableLocal(String variableName)
VariableScope
HistoricVariableUpdateEntity
.removeVariableLocal
in interface VariableScope
protected AbstractVariableScope getSourceActivityVariableScope()
protected void removeVariableLocal(String variableName, AbstractVariableScope sourceActivityExecution)
public ELContext getCachedElContext()
public void setCachedElContext(ELContext cachedElContext)
public void dispatchEvent(VariableEvent variableEvent)
dispatchEvent
in interface VariableEventDispatcher
Copyright © 2019. All rights reserved.