Class VariableScopeLocalAdapter
java.lang.Object
org.camunda.bpm.engine.impl.core.variable.scope.VariableScopeLocalAdapter
- All Implemented Interfaces:
VariableScope
Wraps a variable scope as if it has no parent such that it is reduced to its local
variables. For example
getVariable(String)
simply delegates to
getVariableLocal(String)
.- Author:
- Thorben Lindhauer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetVariable
(String variableName) getVariableLocal
(String variableName) <T extends TypedValue>
TgetVariableLocalTyped
(String variableName) <T extends TypedValue>
TgetVariableLocalTyped
(String variableName, boolean deserializeValue) getVariablesLocalTyped
(boolean deserializeValues) 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
removeVariable
(String variableName) Removes the variable and creates a newHistoricVariableUpdateEntity
.void
removeVariableLocal
(String variableName) Removes the local variable and creates a newHistoricVariableUpdateEntity
.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
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 Details
-
wrappedScope
-
-
Constructor Details
-
VariableScopeLocalAdapter
-
-
Method Details
-
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
-
getVariable
- Specified by:
getVariable
in interfaceVariableScope
-
getVariableLocal
- Specified by:
getVariableLocal
in interfaceVariableScope
-
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
-
getVariableNames
- Specified by:
getVariableNames
in interfaceVariableScope
-
getVariableNamesLocal
- Specified by:
getVariableNamesLocal
in interfaceVariableScope
-
setVariable
- Specified by:
setVariable
in interfaceVariableScope
-
setVariableLocal
- Specified by:
setVariableLocal
in interfaceVariableScope
-
setVariables
- Specified by:
setVariables
in interfaceVariableScope
-
setVariablesLocal
- Specified by:
setVariablesLocal
in interfaceVariableScope
-
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
-
removeVariable
Description copied from interface:VariableScope
Removes the variable and creates a newHistoricVariableUpdateEntity
.- Specified by:
removeVariable
in interfaceVariableScope
-
removeVariableLocal
Description copied from interface:VariableScope
Removes the local variable and creates a newHistoricVariableUpdateEntity
.- Specified by:
removeVariableLocal
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
-
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
-