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
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected ProcessEngineprotected com.fasterxml.jackson.databind.ObjectMapperprotected StringFields inherited from interface org.camunda.bpm.engine.rest.sub.VariableResource
DESERIALIZE_VALUE_QUERY_PARAM, DESERIALIZE_VALUES_QUERY_PARAM -
Constructor Summary
ConstructorsConstructorDescriptionAbstractVariablesResource(ProcessEngine engine, String resourceId, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier 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
-
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:
getVariablesin interfaceVariableResource
-
getVariable
- Specified by:
getVariablein interfaceVariableResource
-
getTypedValueForVariable
-
getVariableBinary
- Specified by:
getVariableBinaryin interfaceVariableResource
-
putVariable
- Specified by:
putVariablein interfaceVariableResource
-
setBinaryVariable
- Specified by:
setBinaryVariablein 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#validateTypein 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:
deleteVariablein interfaceVariableResource
-
modifyVariables
- Specified by:
modifyVariablesin interfaceVariableResource
-
getVariableEntities
-
updateVariableEntities
-
getVariableEntity
-
setVariableEntity
-
removeVariableEntity
-
getResourceTypeName
-