Package org.camunda.bpm.engine.cdi.impl
Class ProcessVariableMap
java.lang.Object
org.camunda.bpm.engine.cdi.impl.ProcessVariableMap
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.camunda.bpm.engine.variable.context.VariableContextvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()<T> T<T extends org.camunda.bpm.engine.variable.value.TypedValue>
TgetValueTyped(String name) protected ObjectgetVariable(String variableName) protected <T extends org.camunda.bpm.engine.variable.value.TypedValue>
TgetVariableTyped(String variableName) booleanisEmpty()keySet()voidorg.camunda.bpm.engine.variable.VariableMaporg.camunda.bpm.engine.variable.VariableMapputValueTyped(String name, org.camunda.bpm.engine.variable.value.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
-
ProcessVariableMap
public ProcessVariableMap()
-
-
Method Details
-
getVariable
-
getVariableTyped
protected <T extends org.camunda.bpm.engine.variable.value.TypedValue> T getVariableTyped(String variableName) -
setVariable
-
get
-
getValue
- Specified by:
getValuein interfaceorg.camunda.bpm.engine.variable.VariableMap
-
getValueTyped
- Specified by:
getValueTypedin interfaceorg.camunda.bpm.engine.variable.VariableMap
-
put
-
putAll
-
putValue
- Specified by:
putValuein interfaceorg.camunda.bpm.engine.variable.VariableMap
-
putValueTyped
public org.camunda.bpm.engine.variable.VariableMap putValueTyped(String name, org.camunda.bpm.engine.variable.value.TypedValue value) - Specified by:
putValueTypedin interfaceorg.camunda.bpm.engine.variable.VariableMap
-
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
public org.camunda.bpm.engine.variable.context.VariableContext asVariableContext()- Specified by:
asVariableContextin interfaceorg.camunda.bpm.engine.variable.VariableMap
-