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 VariableScope
wrappedScope
-
Constructor Summary
Constructors Constructor Description VariableScopeLocalAdapter(VariableScope wrappedScope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getVariable(String variableName)
Object
getVariableLocal(String variableName)
<T extends TypedValue>
TgetVariableLocalTyped(String variableName)
<T extends TypedValue>
TgetVariableLocalTyped(String variableName, boolean deserializeValue)
Set<String>
getVariableNames()
Set<String>
getVariableNamesLocal()
Map<String,Object>
getVariables()
String
getVariableScopeKey()
Map<String,Object>
getVariablesLocal()
VariableMap
getVariablesLocalTyped()
VariableMap
getVariablesLocalTyped(boolean deserializeValues)
VariableMap
getVariablesTyped()
VariableMap
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
hasVariables()
boolean
hasVariablesLocal()
void
removeVariable(String variableName)
Removes the variable and creates a newHistoricVariableUpdateEntity
.void
removeVariableLocal(String variableName)
Removes the local variable and creates a newHistoricVariableUpdateEntity
.void
removeVariables()
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
removeVariablesLocal()
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
setVariable(String variableName, Object value)
void
setVariableLocal(String variableName, Object value)
void
setVariables(Map<String,? extends Object> variables)
void
setVariablesLocal(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:
getVariableScopeKey
in interfaceVariableScope
-
getVariables
public Map<String,Object> getVariables()
- Specified by:
getVariables
in interfaceVariableScope
-
getVariablesTyped
public VariableMap getVariablesTyped()
- Specified by:
getVariablesTyped
in interfaceVariableScope
-
getVariablesTyped
public VariableMap getVariablesTyped(boolean deserializeValues)
- Specified by:
getVariablesTyped
in interfaceVariableScope
-
getVariablesLocal
public Map<String,Object> getVariablesLocal()
- Specified by:
getVariablesLocal
in interfaceVariableScope
-
getVariablesLocalTyped
public VariableMap getVariablesLocalTyped()
- Specified by:
getVariablesLocalTyped
in interfaceVariableScope
-
getVariablesLocalTyped
public VariableMap getVariablesLocalTyped(boolean deserializeValues)
- Specified by:
getVariablesLocalTyped
in interfaceVariableScope
-
getVariable
public Object getVariable(String variableName)
- Specified by:
getVariable
in interfaceVariableScope
-
getVariableLocal
public Object getVariableLocal(String variableName)
- Specified by:
getVariableLocal
in interfaceVariableScope
-
getVariableTyped
public <T extends TypedValue> T getVariableTyped(String variableName)
- Specified by:
getVariableTyped
in interfaceVariableScope
-
getVariableTyped
public <T extends TypedValue> T getVariableTyped(String variableName, boolean deserializeValue)
- Specified by:
getVariableTyped
in interfaceVariableScope
-
getVariableLocalTyped
public <T extends TypedValue> T getVariableLocalTyped(String variableName)
- Specified by:
getVariableLocalTyped
in interfaceVariableScope
-
getVariableLocalTyped
public <T extends TypedValue> T getVariableLocalTyped(String variableName, boolean deserializeValue)
- Specified by:
getVariableLocalTyped
in interfaceVariableScope
-
getVariableNames
public Set<String> getVariableNames()
- Specified by:
getVariableNames
in interfaceVariableScope
-
getVariableNamesLocal
public Set<String> getVariableNamesLocal()
- Specified by:
getVariableNamesLocal
in interfaceVariableScope
-
setVariable
public void setVariable(String variableName, Object value)
- Specified by:
setVariable
in interfaceVariableScope
-
setVariableLocal
public void setVariableLocal(String variableName, Object value)
- Specified by:
setVariableLocal
in interfaceVariableScope
-
setVariables
public void setVariables(Map<String,? extends Object> variables)
- Specified by:
setVariables
in interfaceVariableScope
-
setVariablesLocal
public void setVariablesLocal(Map<String,? extends Object> variables)
- Specified by:
setVariablesLocal
in interfaceVariableScope
-
hasVariables
public boolean hasVariables()
- Specified by:
hasVariables
in interfaceVariableScope
-
hasVariablesLocal
public boolean hasVariablesLocal()
- Specified by:
hasVariablesLocal
in interfaceVariableScope
-
hasVariable
public boolean hasVariable(String variableName)
- Specified by:
hasVariable
in interfaceVariableScope
-
hasVariableLocal
public boolean hasVariableLocal(String variableName)
- Specified by:
hasVariableLocal
in interfaceVariableScope
-
removeVariable
public void removeVariable(String variableName)
Description copied from interface:VariableScope
Removes the variable and creates a newHistoricVariableUpdateEntity
.- Specified by:
removeVariable
in interfaceVariableScope
-
removeVariableLocal
public void removeVariableLocal(String variableName)
Description copied from interface:VariableScope
Removes the local variable and creates a newHistoricVariableUpdateEntity
.- Specified by:
removeVariableLocal
in interfaceVariableScope
-
removeVariables
public void removeVariables(Collection<String> variableNames)
Description copied from interface:VariableScope
Removes the variables and creates a newHistoricVariableUpdateEntity
for each of them.- Specified by:
removeVariables
in interfaceVariableScope
-
removeVariablesLocal
public void removeVariablesLocal(Collection<String> variableNames)
Description copied from interface:VariableScope
Removes the local variables and creates a newHistoricVariableUpdateEntity
for each of them.- Specified by:
removeVariablesLocal
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
-
-