Class AbstractVariablesResource

    • Field Detail

      • DEFAULT_BINARY_VALUE_TYPE

        protected static final java.lang.String DEFAULT_BINARY_VALUE_TYPE
        See Also:
        Constant Field Values
      • resourceId

        protected java.lang.String resourceId
      • objectMapper

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

      • AbstractVariablesResource

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

      • getTypedValueForVariable

        protected TypedValue getTypedValueForVariable​(java.lang.String variableName,
                                                      boolean deserializeValue)
      • getVariableBinary

        public javax.ws.rs.core.Response getVariableBinary​(java.lang.String variableName)
        Specified by:
        getVariableBinary in interface VariableResource
      • deserializeJsonObject

        protected java.lang.Object deserializeJsonObject​(java.lang.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,
                                    DeserializationTypeValidator validator,
                                    java.util.List<java.lang.String> invalidTypes)
      • validateTypeInternal

        protected void validateTypeInternal​(com.fasterxml.jackson.databind.JavaType type,
                                            DeserializationTypeValidator validator,
                                            java.util.List<java.lang.String> invalidTypes)
      • getVariableEntities

        protected abstract VariableMap getVariableEntities​(boolean deserializeValues)
      • updateVariableEntities

        protected abstract void updateVariableEntities​(VariableMap variables,
                                                       java.util.List<java.lang.String> deletions)
      • getVariableEntity

        protected abstract TypedValue getVariableEntity​(java.lang.String variableKey,
                                                        boolean deserializeValue)
      • setVariableEntity

        protected abstract void setVariableEntity​(java.lang.String variableKey,
                                                  TypedValue variableValue)
      • removeVariableEntity

        protected abstract void removeVariableEntity​(java.lang.String variableKey)
      • getResourceTypeName

        protected abstract java.lang.String getResourceTypeName()