Class AbstractVariablesResource
java.lang.Object
org.camunda.bpm.engine.rest.sub.impl.AbstractVariablesResource
- All Implemented Interfaces:
VariableResource
- Direct Known Subclasses:
CaseExecutionVariablesResource
,ExecutionVariablesResource
,LocalCaseExecutionVariablesResource
,LocalExecutionVariablesResource
,LocalTaskVariablesResource
,TaskVariablesResource
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected ProcessEngine
protected com.fasterxml.jackson.databind.ObjectMapper
protected String
Fields inherited from interface org.camunda.bpm.engine.rest.sub.VariableResource
DESERIALIZE_VALUE_QUERY_PARAM, DESERIALIZE_VALUES_QUERY_PARAM
-
Constructor Summary
ConstructorDescriptionAbstractVariablesResource
(ProcessEngine engine, String resourceId, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteVariable
(String variableName) protected Object
deserializeJsonObject
(String className, byte[] data) protected ProcessEngineConfiguration
protected abstract String
protected TypedValue
getTypedValueForVariable
(String variableName, boolean deserializeValue) getVariable
(String variableName, boolean deserializeValue) jakarta.ws.rs.core.Response
getVariableBinary
(String variableName) protected abstract VariableMap
getVariableEntities
(boolean deserializeValues) protected abstract TypedValue
getVariableEntity
(String variableKey, boolean deserializeValue) getVariables
(boolean deserializeValues) void
modifyVariables
(PatchVariablesDto patch) void
putVariable
(String variableName, VariableValueDto variable) protected abstract void
removeVariableEntity
(String variableKey) void
setBinaryVariable
(String variableKey, MultipartFormData payload) protected abstract void
setVariableEntity
(String variableKey, TypedValue variableValue) protected abstract void
updateVariableEntities
(VariableMap variables, List<String> deletions) protected void
validateType
(com.fasterxml.jackson.databind.JavaType type) Validate the type with the help of the validator in the engine.
Note: when adjusting this method, please also consider adjusting theJacksonJsonDataFormatMapper#validateType
in the Engine Spin Pluginprotected void
validateType
(com.fasterxml.jackson.databind.JavaType type, DeserializationTypeValidator validator, List<String> invalidTypes) protected void
validateTypeInternal
(com.fasterxml.jackson.databind.JavaType type, DeserializationTypeValidator validator, List<String> invalidTypes)
-
Field Details
-
DEFAULT_BINARY_VALUE_TYPE
- See Also:
-
engine
-
resourceId
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
AbstractVariablesResource
public AbstractVariablesResource(ProcessEngine engine, String resourceId, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getVariables
- Specified by:
getVariables
in interfaceVariableResource
-
getVariable
- Specified by:
getVariable
in interfaceVariableResource
-
getTypedValueForVariable
-
getVariableBinary
- Specified by:
getVariableBinary
in interfaceVariableResource
-
putVariable
- Specified by:
putVariable
in interfaceVariableResource
-
setBinaryVariable
- Specified by:
setBinaryVariable
in interfaceVariableResource
-
deserializeJsonObject
-
validateType
protected void validateType(com.fasterxml.jackson.databind.JavaType type) Validate the type with the help of the validator in the engine.
Note: when adjusting this method, please also consider adjusting theJacksonJsonDataFormatMapper#validateType
in the Engine Spin Plugin -
validateType
protected void validateType(com.fasterxml.jackson.databind.JavaType type, DeserializationTypeValidator validator, List<String> invalidTypes) -
validateTypeInternal
protected void validateTypeInternal(com.fasterxml.jackson.databind.JavaType type, DeserializationTypeValidator validator, List<String> invalidTypes) -
getProcessEngineConfiguration
-
deleteVariable
- Specified by:
deleteVariable
in interfaceVariableResource
-
modifyVariables
- Specified by:
modifyVariables
in interfaceVariableResource
-
getVariableEntities
-
updateVariableEntities
-
getVariableEntity
-
setVariableEntity
-
removeVariableEntity
-
getResourceTypeName
-