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 SummaryFieldsModifier and TypeFieldDescriptionprotected static final Stringprotected ProcessEngineprotected com.fasterxml.jackson.databind.ObjectMapperprotected StringFields inherited from interface org.camunda.bpm.engine.rest.sub.VariableResourceDESERIALIZE_VALUE_QUERY_PARAM, DESERIALIZE_VALUES_QUERY_PARAM
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractVariablesResource(ProcessEngine engine, String resourceId, com.fasterxml.jackson.databind.ObjectMapper objectMapper) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddeleteVariable(String variableName) protected ObjectdeserializeJsonObject(String className, byte[] data) protected ProcessEngineConfigurationprotected abstract Stringprotected TypedValuegetTypedValueForVariable(String variableName, boolean deserializeValue) getVariable(String variableName, boolean deserializeValue) jakarta.ws.rs.core.ResponsegetVariableBinary(String variableName) protected abstract VariableMapgetVariableEntities(boolean deserializeValues) protected abstract TypedValuegetVariableEntity(String variableKey, boolean deserializeValue) getVariables(boolean deserializeValues) voidmodifyVariables(PatchVariablesDto patch) voidputVariable(String variableName, VariableValueDto variable) protected abstract voidremoveVariableEntity(String variableKey) voidsetBinaryVariable(String variableKey, MultipartFormData payload) protected abstract voidsetVariableEntity(String variableKey, TypedValue variableValue) protected abstract voidupdateVariableEntities(VariableMap variables, List<String> deletions) protected voidvalidateType(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#validateTypein the Engine Spin Pluginprotected voidvalidateType(com.fasterxml.jackson.databind.JavaType type, DeserializationTypeValidator validator, List<String> invalidTypes) protected voidvalidateTypeInternal(com.fasterxml.jackson.databind.JavaType type, DeserializationTypeValidator validator, List<String> invalidTypes) 
- 
Field Details- 
DEFAULT_BINARY_VALUE_TYPE- See Also:
 
- 
engine
- 
resourceId
- 
objectMapperprotected com.fasterxml.jackson.databind.ObjectMapper objectMapper
 
- 
- 
Constructor Details- 
AbstractVariablesResourcepublic AbstractVariablesResource(ProcessEngine engine, String resourceId, com.fasterxml.jackson.databind.ObjectMapper objectMapper) 
 
- 
- 
Method Details- 
getVariables- Specified by:
- getVariablesin interface- VariableResource
 
- 
getVariable- Specified by:
- getVariablein interface- VariableResource
 
- 
getTypedValueForVariable
- 
getVariableBinary- Specified by:
- getVariableBinaryin interface- VariableResource
 
- 
putVariable- Specified by:
- putVariablein interface- VariableResource
 
- 
setBinaryVariable- Specified by:
- setBinaryVariablein interface- VariableResource
 
- 
deserializeJsonObject
- 
validateTypeprotected 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#validateTypein the Engine Spin Plugin
- 
validateTypeprotected void validateType(com.fasterxml.jackson.databind.JavaType type, DeserializationTypeValidator validator, List<String> invalidTypes) 
- 
validateTypeInternalprotected void validateTypeInternal(com.fasterxml.jackson.databind.JavaType type, DeserializationTypeValidator validator, List<String> invalidTypes) 
- 
getProcessEngineConfiguration
- 
deleteVariable- Specified by:
- deleteVariablein interface- VariableResource
 
- 
modifyVariables- Specified by:
- modifyVariablesin interface- VariableResource
 
- 
getVariableEntities
- 
updateVariableEntities
- 
getVariableEntity
- 
setVariableEntity
- 
removeVariableEntity
- 
getResourceTypeName
 
-