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
public class ProcessVariableLocalMap extends Object
Allows to expose the local process variables of the current business process as a java.util.MapThe map delegates changes to BusinessProcess.setVariableLocal(String, Object)andBusinessProcess.getVariableLocal(String), so that they are not flushed prematurely.- Author:
- Michael Scholz
-
-
Field Summary
Fields Modifier and Type Field Description protected BusinessProcessbusinessProcess
-
Constructor Summary
Constructors Constructor Description ProcessVariableLocalMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VariableContextasVariableContext()Interprets the variable map as variable contextvoidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<String,Object>>entrySet()Objectget(Object key)<T> TgetValue(String name, Class<T> type)<T extends TypedValue>
TgetValueTyped(String name)protected ObjectgetVariable(String variableName)protected <T extends TypedValue>
TgetVariableTyped(String variableName)booleanisEmpty()Set<String>keySet()Objectput(String key, Object value)voidputAll(Map<? extends String,? extends Object> m)VariableMapputValue(String name, Object value)VariableMapputValueTyped(String name, TypedValue value)Objectremove(Object key)protected voidsetVariable(String variableName, Object value)intsize()Collection<Object>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 Detail
-
businessProcess
@Inject protected BusinessProcess businessProcess
-
-
Method Detail
-
getVariableTyped
protected <T extends TypedValue> T getVariableTyped(String variableName)
-
getValue
public <T> T getValue(String name, Class<T> type)
- Specified by:
getValuein interfaceVariableMap
-
getValueTyped
public <T extends TypedValue> T getValueTyped(String name)
- Specified by:
getValueTypedin interfaceVariableMap
-
putValue
public VariableMap putValue(String name, Object value)
- Specified by:
putValuein interfaceVariableMap
-
putValueTyped
public VariableMap putValueTyped(String name, TypedValue value)
- Specified by:
putValueTypedin interfaceVariableMap
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<String,Object>
-
asVariableContext
public VariableContext 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
-
-