public abstract class VariableScopeImpl extends Object implements Serializable, VariableScope
Modifier and Type | Field and Description |
---|---|
protected ELContext |
cachedElContext |
protected String |
id |
protected Map<String,VariableInstanceEntity> |
variableInstances |
Constructor and Description |
---|
VariableScopeImpl() |
Modifier and Type | Method and Description |
---|---|
protected Set<String> |
collectVariableNames(Set<String> variableNames) |
protected Map<String,Object> |
collectVariables(HashMap<String,Object> variables) |
protected VariableInstanceEntity |
createVariableInstance(String variableName,
Object value,
ExecutionEntity sourceActivityExecution) |
protected void |
createVariableLocal(String variableName,
Object value) |
protected void |
createVariableLocal(String variableName,
Object value,
ExecutionEntity sourceActivityExecution)
only called when a new variable is created on this variable scope.
|
protected void |
createVariablesLocal(Map<String,? extends Object> variables) |
protected void |
deleteVariableInstanceForExplicitUserCall(VariableInstanceEntity variableInstance,
ExecutionEntity sourceActivityExecution) |
void |
deleteVariablesInstanceForLeavingScope() |
protected void |
ensureVariableInstancesInitialized() |
protected void |
fireHistoricVariableInstanceCreate(VariableInstanceEntity variableInstance,
ExecutionEntity sourceActivityExecution) |
protected void |
fireHistoricVariableInstanceDelete(VariableInstanceEntity variableInstance,
ExecutionEntity sourceActivityExecution) |
protected void |
fireHistoricVariableInstanceUpdate(VariableInstanceEntity variableInstance,
ExecutionEntity sourceActivityExecution) |
ELContext |
getCachedElContext() |
String |
getId() |
protected abstract VariableScopeImpl |
getParentVariableScope() |
protected ExecutionEntity |
getSourceActivityExecution() |
Object |
getVariable(String variableName) |
Object |
getVariableLocal(String variableName) |
Set<String> |
getVariableNames() |
Set<String> |
getVariableNamesLocal() |
Map<String,Object> |
getVariables() |
Map<String,Object> |
getVariablesLocal() |
boolean |
hasVariable(String variableName) |
boolean |
hasVariableLocal(String variableName) |
boolean |
hasVariables() |
boolean |
hasVariablesLocal() |
protected abstract void |
initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance) |
protected boolean |
isAutoFireHistoryEvents() |
protected abstract List<VariableInstanceEntity> |
loadVariableInstances() |
void |
removeVariable(String variableName)
Removes the variable and creates a new
HistoricVariableUpdateEntity . |
protected void |
removeVariable(String variableName,
ExecutionEntity sourceActivityExecution) |
void |
removeVariableLocal(String variableName)
Removes the local variable and creates a new
HistoricVariableUpdateEntity . |
protected void |
removeVariableLocal(String variableName,
ExecutionEntity 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 |
setId(String id) |
void |
setVariable(String variableName,
Object value) |
protected void |
setVariable(String variableName,
Object value,
ExecutionEntity sourceActivityExecution) |
void |
setVariableLocal(String variableName,
Object value) |
protected void |
setVariableLocal(String variableName,
Object value,
ExecutionEntity sourceActivityExecution) |
void |
setVariables(Map<String,? extends Object> variables) |
void |
setVariablesLocal(Map<String,? extends Object> variables) |
protected void |
updateVariableInstance(VariableInstanceEntity variableInstance,
Object value,
ExecutionEntity sourceActivityExecution) |
protected Map<String,VariableInstanceEntity> variableInstances
protected ELContext cachedElContext
protected String id
protected abstract List<VariableInstanceEntity> loadVariableInstances()
protected abstract VariableScopeImpl getParentVariableScope()
protected abstract void initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
protected void ensureVariableInstancesInitialized()
public Map<String,Object> getVariables()
getVariables
in interface VariableScope
public Object getVariable(String variableName)
getVariable
in interface VariableScope
public Object getVariableLocal(String variableName)
getVariableLocal
in interface VariableScope
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 Map<String,Object> getVariablesLocal()
getVariablesLocal
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 deleteVariablesInstanceForLeavingScope()
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, Object value, ExecutionEntity sourceActivityExecution)
public void setVariableLocal(String variableName, Object value)
setVariableLocal
in interface VariableScope
protected void setVariableLocal(String variableName, Object value, ExecutionEntity sourceActivityExecution)
protected void createVariableLocal(String variableName, Object value, ExecutionEntity sourceActivityExecution)
public void removeVariable(String variableName)
VariableScope
HistoricVariableUpdateEntity
.removeVariable
in interface VariableScope
protected void removeVariable(String variableName, ExecutionEntity sourceActivityExecution)
public void removeVariableLocal(String variableName)
VariableScope
HistoricVariableUpdateEntity
.removeVariableLocal
in interface VariableScope
protected ExecutionEntity getSourceActivityExecution()
protected void removeVariableLocal(String variableName, ExecutionEntity sourceActivityExecution)
protected void deleteVariableInstanceForExplicitUserCall(VariableInstanceEntity variableInstance, ExecutionEntity sourceActivityExecution)
protected void updateVariableInstance(VariableInstanceEntity variableInstance, Object value, ExecutionEntity sourceActivityExecution)
protected VariableInstanceEntity createVariableInstance(String variableName, Object value, ExecutionEntity sourceActivityExecution)
protected void fireHistoricVariableInstanceDelete(VariableInstanceEntity variableInstance, ExecutionEntity sourceActivityExecution)
protected void fireHistoricVariableInstanceCreate(VariableInstanceEntity variableInstance, ExecutionEntity sourceActivityExecution)
protected void fireHistoricVariableInstanceUpdate(VariableInstanceEntity variableInstance, ExecutionEntity sourceActivityExecution)
protected boolean isAutoFireHistoryEvents()
public ELContext getCachedElContext()
public void setCachedElContext(ELContext cachedElContext)
public String getId()
public void setId(String id)
Copyright © 2015. All rights reserved.