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 org.camunda.bpm.engine.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(org.camunda.bpm.engine.ProcessEngine engine, String resourceId, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteVariable(String variableName) protected ObjectdeserializeJsonObject(String className, byte[] data) protected org.camunda.bpm.engine.ProcessEngineConfigurationprotected abstract Stringprotected org.camunda.bpm.engine.variable.value.TypedValuegetTypedValueForVariable(String variableName, boolean deserializeValue) getVariable(String variableName, boolean deserializeValue) javax.ws.rs.core.ResponsegetVariableBinary(String variableName) protected abstract org.camunda.bpm.engine.variable.VariableMapgetVariableEntities(boolean deserializeValues) protected abstract org.camunda.bpm.engine.variable.value.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, org.camunda.bpm.engine.variable.value.TypedValue variableValue) protected abstract voidupdateVariableEntities(org.camunda.bpm.engine.variable.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, org.camunda.bpm.engine.runtime.DeserializationTypeValidator validator, List<String> invalidTypes) protected voidvalidateTypeInternal(com.fasterxml.jackson.databind.JavaType type, org.camunda.bpm.engine.runtime.DeserializationTypeValidator validator, List<String> invalidTypes)
-
Field Details
-
DEFAULT_BINARY_VALUE_TYPE
- See Also:
-
engine
protected org.camunda.bpm.engine.ProcessEngine engine -
resourceId
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
AbstractVariablesResource
public AbstractVariablesResource(org.camunda.bpm.engine.ProcessEngine engine, String resourceId, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getVariables
- Specified by:
getVariablesin interfaceVariableResource
-
getVariable
- Specified by:
getVariablein interfaceVariableResource
-
getTypedValueForVariable
protected org.camunda.bpm.engine.variable.value.TypedValue getTypedValueForVariable(String variableName, boolean deserializeValue) -
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
-
validateTypeInternal
-
getProcessEngineConfiguration
protected org.camunda.bpm.engine.ProcessEngineConfiguration getProcessEngineConfiguration() -
deleteVariable
- Specified by:
deleteVariablein interfaceVariableResource
-
modifyVariables
- Specified by:
modifyVariablesin interfaceVariableResource
-
getVariableEntities
protected abstract org.camunda.bpm.engine.variable.VariableMap getVariableEntities(boolean deserializeValues) -
updateVariableEntities
-
getVariableEntity
protected abstract org.camunda.bpm.engine.variable.value.TypedValue getVariableEntity(String variableKey, boolean deserializeValue) -
setVariableEntity
protected abstract void setVariableEntity(String variableKey, org.camunda.bpm.engine.variable.value.TypedValue variableValue) -
removeVariableEntity
-
getResourceTypeName
-