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