Class VariableScopeLocalAdapter
- java.lang.Object
-
- org.camunda.bpm.engine.impl.core.variable.scope.VariableScopeLocalAdapter
-
- All Implemented Interfaces:
VariableScope
public class VariableScopeLocalAdapter extends Object implements VariableScope
Wraps a variable scope as if it has no parent such that it is reduced to its local variables. For examplegetVariable(String)simply delegates togetVariableLocal(String).- Author:
- Thorben Lindhauer
-
-
Field Summary
Fields Modifier and Type Field Description protected VariableScopewrappedScope
-
Constructor Summary
Constructors Constructor Description VariableScopeLocalAdapter(VariableScope wrappedScope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetVariable(String variableName)ObjectgetVariableLocal(String variableName)<T extends org.camunda.bpm.engine.variable.value.TypedValue>
TgetVariableLocalTyped(String variableName)<T extends org.camunda.bpm.engine.variable.value.TypedValue>
TgetVariableLocalTyped(String variableName, boolean deserializeValue)Set<String>getVariableNames()Set<String>getVariableNamesLocal()Map<String,Object>getVariables()StringgetVariableScopeKey()Map<String,Object>getVariablesLocal()org.camunda.bpm.engine.variable.VariableMapgetVariablesLocalTyped()org.camunda.bpm.engine.variable.VariableMapgetVariablesLocalTyped(boolean deserializeValues)org.camunda.bpm.engine.variable.VariableMapgetVariablesTyped()org.camunda.bpm.engine.variable.VariableMapgetVariablesTyped(boolean deserializeValues)<T extends org.camunda.bpm.engine.variable.value.TypedValue>
TgetVariableTyped(String variableName)<T extends org.camunda.bpm.engine.variable.value.TypedValue>
TgetVariableTyped(String variableName, boolean deserializeValue)booleanhasVariable(String variableName)booleanhasVariableLocal(String variableName)booleanhasVariables()booleanhasVariablesLocal()voidremoveVariable(String variableName)Removes the variable and creates a newHistoricVariableUpdateEntity.voidremoveVariableLocal(String variableName)Removes the local variable and creates a newHistoricVariableUpdateEntity.voidremoveVariables()Removes the (local) variables and creates a newHistoricVariableUpdateEntityfor each of them.voidremoveVariables(Collection<String> variableNames)Removes the variables and creates a newHistoricVariableUpdateEntityfor each of them.voidremoveVariablesLocal()Removes the (local) variables and creates a newHistoricVariableUpdateEntityfor each of them.voidremoveVariablesLocal(Collection<String> variableNames)Removes the local variables and creates a newHistoricVariableUpdateEntityfor each of them.voidsetVariable(String variableName, Object value)voidsetVariableLocal(String variableName, Object value)voidsetVariables(Map<String,? extends Object> variables)voidsetVariablesLocal(Map<String,? extends Object> variables)
-
-
-
Field Detail
-
wrappedScope
protected VariableScope wrappedScope
-
-
Constructor Detail
-
VariableScopeLocalAdapter
public VariableScopeLocalAdapter(VariableScope wrappedScope)
-
-
Method Detail
-
getVariableScopeKey
public String getVariableScopeKey()
- Specified by:
getVariableScopeKeyin interfaceVariableScope
-
getVariables
public Map<String,Object> getVariables()
- Specified by:
getVariablesin interfaceVariableScope
-
getVariablesTyped
public org.camunda.bpm.engine.variable.VariableMap getVariablesTyped()
- Specified by:
getVariablesTypedin interfaceVariableScope
-
getVariablesTyped
public org.camunda.bpm.engine.variable.VariableMap getVariablesTyped(boolean deserializeValues)
- Specified by:
getVariablesTypedin interfaceVariableScope
-
getVariablesLocal
public Map<String,Object> getVariablesLocal()
- Specified by:
getVariablesLocalin interfaceVariableScope
-
getVariablesLocalTyped
public org.camunda.bpm.engine.variable.VariableMap getVariablesLocalTyped()
- Specified by:
getVariablesLocalTypedin interfaceVariableScope
-
getVariablesLocalTyped
public org.camunda.bpm.engine.variable.VariableMap getVariablesLocalTyped(boolean deserializeValues)
- Specified by:
getVariablesLocalTypedin interfaceVariableScope
-
getVariable
public Object getVariable(String variableName)
- Specified by:
getVariablein interfaceVariableScope
-
getVariableLocal
public Object getVariableLocal(String variableName)
- Specified by:
getVariableLocalin interfaceVariableScope
-
getVariableTyped
public <T extends org.camunda.bpm.engine.variable.value.TypedValue> T getVariableTyped(String variableName)
- Specified by:
getVariableTypedin interfaceVariableScope
-
getVariableTyped
public <T extends org.camunda.bpm.engine.variable.value.TypedValue> T getVariableTyped(String variableName, boolean deserializeValue)
- Specified by:
getVariableTypedin interfaceVariableScope
-
getVariableLocalTyped
public <T extends org.camunda.bpm.engine.variable.value.TypedValue> T getVariableLocalTyped(String variableName)
- Specified by:
getVariableLocalTypedin interfaceVariableScope
-
getVariableLocalTyped
public <T extends org.camunda.bpm.engine.variable.value.TypedValue> T getVariableLocalTyped(String variableName, boolean deserializeValue)
- Specified by:
getVariableLocalTypedin interfaceVariableScope
-
getVariableNames
public Set<String> getVariableNames()
- Specified by:
getVariableNamesin interfaceVariableScope
-
getVariableNamesLocal
public Set<String> getVariableNamesLocal()
- Specified by:
getVariableNamesLocalin interfaceVariableScope
-
setVariable
public void setVariable(String variableName, Object value)
- Specified by:
setVariablein interfaceVariableScope
-
setVariableLocal
public void setVariableLocal(String variableName, Object value)
- Specified by:
setVariableLocalin interfaceVariableScope
-
setVariables
public void setVariables(Map<String,? extends Object> variables)
- Specified by:
setVariablesin interfaceVariableScope
-
setVariablesLocal
public void setVariablesLocal(Map<String,? extends Object> variables)
- Specified by:
setVariablesLocalin interfaceVariableScope
-
hasVariables
public boolean hasVariables()
- Specified by:
hasVariablesin interfaceVariableScope
-
hasVariablesLocal
public boolean hasVariablesLocal()
- Specified by:
hasVariablesLocalin interfaceVariableScope
-
hasVariable
public boolean hasVariable(String variableName)
- Specified by:
hasVariablein interfaceVariableScope
-
hasVariableLocal
public boolean hasVariableLocal(String variableName)
- Specified by:
hasVariableLocalin interfaceVariableScope
-
removeVariable
public void removeVariable(String variableName)
Description copied from interface:VariableScopeRemoves the variable and creates a newHistoricVariableUpdateEntity.- Specified by:
removeVariablein interfaceVariableScope
-
removeVariableLocal
public void removeVariableLocal(String variableName)
Description copied from interface:VariableScopeRemoves the local variable and creates a newHistoricVariableUpdateEntity.- Specified by:
removeVariableLocalin interfaceVariableScope
-
removeVariables
public void removeVariables(Collection<String> variableNames)
Description copied from interface:VariableScopeRemoves the variables and creates a newHistoricVariableUpdateEntityfor each of them.- Specified by:
removeVariablesin interfaceVariableScope
-
removeVariablesLocal
public void removeVariablesLocal(Collection<String> variableNames)
Description copied from interface:VariableScopeRemoves the local variables and creates a newHistoricVariableUpdateEntityfor each of them.- Specified by:
removeVariablesLocalin interfaceVariableScope
-
removeVariables
public void removeVariables()
Description copied from interface:VariableScopeRemoves the (local) variables and creates a newHistoricVariableUpdateEntityfor each of them.- Specified by:
removeVariablesin interfaceVariableScope
-
removeVariablesLocal
public void removeVariablesLocal()
Description copied from interface:VariableScopeRemoves the (local) variables and creates a newHistoricVariableUpdateEntityfor each of them.- Specified by:
removeVariablesLocalin interfaceVariableScope
-
-