Class VariableUtil
- java.lang.Object
-
- org.camunda.bpm.engine.impl.core.variable.VariableUtil
-
public class VariableUtil extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
VariableUtil.SetVariableFunction
-
Field Summary
Fields Modifier and Type Field Description static CommandLogger
CMD_LOGGER
static CoreLogger
CORE_LOGGER
static java.lang.String
ERROR_MSG
-
Constructor Summary
Constructors Constructor Description VariableUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkJavaSerialization(java.lang.String variableName, TypedValue value)
static java.util.Map<java.lang.String,?>
findBatchVariablesSerialized(java.lang.String batchId, CommandContext commandContext)
protected static TypedValue
getSerializedValue(VariableInstanceEntity variableInstanceEntity)
static boolean
isJavaSerializationProhibited(TypedValue value)
Checks, if Java serialization will be used and if it is allowed to be used.static void
setVariableByBatchId(java.lang.String batchId, java.lang.String variableName, java.lang.Object variableValue)
static void
setVariables(java.util.Map<java.lang.String,?> variables, VariableUtil.SetVariableFunction setVariableFunction)
static void
setVariablesByBatchId(java.util.Map<java.lang.String,?> variables, java.lang.String batchId)
protected static java.util.stream.Collector<VariableInstanceEntity,?,java.util.Map<java.lang.String,TypedValue>>
variablesCollector()
-
-
-
Field Detail
-
CMD_LOGGER
public static final CommandLogger CMD_LOGGER
-
CORE_LOGGER
public static final CoreLogger CORE_LOGGER
-
ERROR_MSG
public static final java.lang.String ERROR_MSG
- See Also:
- Constant Field Values
-
-
Method Detail
-
isJavaSerializationProhibited
public static boolean isJavaSerializationProhibited(TypedValue value)
Checks, if Java serialization will be used and if it is allowed to be used.- Parameters:
value
-
-
checkJavaSerialization
public static void checkJavaSerialization(java.lang.String variableName, TypedValue value)
-
setVariables
public static void setVariables(java.util.Map<java.lang.String,?> variables, VariableUtil.SetVariableFunction setVariableFunction)
-
setVariablesByBatchId
public static void setVariablesByBatchId(java.util.Map<java.lang.String,?> variables, java.lang.String batchId)
-
setVariableByBatchId
public static void setVariableByBatchId(java.lang.String batchId, java.lang.String variableName, java.lang.Object variableValue)
-
findBatchVariablesSerialized
public static java.util.Map<java.lang.String,?> findBatchVariablesSerialized(java.lang.String batchId, CommandContext commandContext)
-
variablesCollector
protected static java.util.stream.Collector<VariableInstanceEntity,?,java.util.Map<java.lang.String,TypedValue>> variablesCollector()
-
getSerializedValue
protected static TypedValue getSerializedValue(VariableInstanceEntity variableInstanceEntity)
-
-