Package org.camunda.bpm.engine.cdi.impl
Class ProcessVariableLocalMap
java.lang.Object
org.camunda.bpm.engine.cdi.impl.ProcessVariableLocalMap
- All Implemented Interfaces:
Map<String,,Object> VariableMap
Allows to expose the local process variables of the current business process as a
java.util.Map<String,Object>
The map delegates changes to
BusinessProcess.setVariableLocal(String, Object) and
BusinessProcess.getVariableLocal(String), so that they are not flushed
prematurely.- Author:
- Michael Scholz
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInterprets the variable map as variable contextvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()<T> T<T extends TypedValue>
TgetValueTyped(String name) protected ObjectgetVariable(String variableName) protected <T extends TypedValue>
TgetVariableTyped(String variableName) booleanisEmpty()keySet()voidputValueTyped(String name, TypedValue value) protected voidsetVariable(String variableName, Object value) intsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
businessProcess
-
-
Constructor Details
-
ProcessVariableLocalMap
public ProcessVariableLocalMap()
-
-
Method Details
-
getVariable
-
getVariableTyped
-
setVariable
-
get
-
getValue
- Specified by:
getValuein interfaceVariableMap
-
getValueTyped
- Specified by:
getValueTypedin interfaceVariableMap
-
put
-
putAll
-
putValue
- Specified by:
putValuein interfaceVariableMap
-
putValueTyped
- Specified by:
putValueTypedin interfaceVariableMap
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,Object>
-
remove
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
asVariableContext
Description copied from interface:VariableMapInterprets the variable map as variable context- Specified by:
asVariableContextin interfaceVariableMap- Returns:
- A VariableContext which is capable of resolving all variables in the map
-