Class AbstractVariablesResource

    • Field Detail

      • engine

        protected org.camunda.bpm.engine.ProcessEngine engine
      • resourceId

        protected String resourceId
      • objectMapper

        protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • Constructor Detail

      • AbstractVariablesResource

        public AbstractVariablesResource​(org.camunda.bpm.engine.ProcessEngine engine,
                                         String resourceId,
                                         com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • Method Detail

      • getTypedValueForVariable

        protected org.camunda.bpm.engine.variable.value.TypedValue getTypedValueForVariable​(String variableName,
                                                                                            boolean deserializeValue)
      • deserializeJsonObject

        protected Object deserializeJsonObject​(String className,
                                               byte[] data)
      • 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 the JacksonJsonDataFormatMapper#validateType in the Engine Spin Plugin
      • validateType

        protected void validateType​(com.fasterxml.jackson.databind.JavaType type,
                                    org.camunda.bpm.engine.runtime.DeserializationTypeValidator validator,
                                    List<String> invalidTypes)
      • validateTypeInternal

        protected void validateTypeInternal​(com.fasterxml.jackson.databind.JavaType type,
                                            org.camunda.bpm.engine.runtime.DeserializationTypeValidator validator,
                                            List<String> invalidTypes)
      • getProcessEngineConfiguration

        protected org.camunda.bpm.engine.ProcessEngineConfiguration getProcessEngineConfiguration()
      • getVariableEntities

        protected abstract org.camunda.bpm.engine.variable.VariableMap getVariableEntities​(boolean deserializeValues)
      • updateVariableEntities

        protected abstract void updateVariableEntities​(org.camunda.bpm.engine.variable.VariableMap variables,
                                                       List<String> deletions)
      • 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

        protected abstract void removeVariableEntity​(String variableKey)
      • getResourceTypeName

        protected abstract String getResourceTypeName()