Class CustomStringVariableType

  • All Implemented Interfaces:
    org.activiti.engine.impl.variable.VariableType

    public class CustomStringVariableType
    extends org.activiti.engine.impl.variable.StringType
    Custom implementation of the Activiti StringType, which allows string-values to be larger than the database-restriction of the TEXT_ column, by using binary storage in case the string value exceeds the size.
    Since:
    4.2
    Author:
    Frederik Heremans
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static int MAX_TEXT_LENGTH  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getValue​(org.activiti.engine.impl.variable.ValueFields valueFields)  
      void setValue​(java.lang.Object value, org.activiti.engine.impl.variable.ValueFields valueFields)  
      • Methods inherited from class org.activiti.engine.impl.variable.StringType

        getTypeName, isAbleToStore, isCachable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomStringVariableType

        public CustomStringVariableType()
      • CustomStringVariableType

        public CustomStringVariableType​(int length)
    • Method Detail

      • setValue

        public void setValue​(java.lang.Object value,
                             org.activiti.engine.impl.variable.ValueFields valueFields)
        Specified by:
        setValue in interface org.activiti.engine.impl.variable.VariableType
        Overrides:
        setValue in class org.activiti.engine.impl.variable.StringType
      • getValue

        public java.lang.Object getValue​(org.activiti.engine.impl.variable.ValueFields valueFields)
        Specified by:
        getValue in interface org.activiti.engine.impl.variable.VariableType
        Overrides:
        getValue in class org.activiti.engine.impl.variable.StringType