Interface ValueType

    • Method Detail

      • getName

        java.lang.String getName()
        Returns the name of the variable type
      • isPrimitiveValueType

        boolean isPrimitiveValueType()
        Indicates whether this type is primitive valued. Primitive valued types can be handled natively by the process engine.
        Returns:
        true if this is a primitive valued type. False otherwise
      • getValueInfo

        java.util.Map<java.lang.String,​java.lang.Object> getValueInfo​(TypedValue typedValue)
        Get the value info (meta data) for a TypedValue. The keys of the returned map for a TypedValue are available as constants in the value's ValueType interface.
        Parameters:
        typedValue -
        Returns:
      • createValue

        TypedValue createValue​(java.lang.Object value,
                               java.util.Map<java.lang.String,​java.lang.Object> valueInfo)
        Creates a new TypedValue using this type.
        Parameters:
        value - the value
        Returns:
        the typed value for the value
      • getParent

        ValueType getParent()

        Gets the parent value type.

        Value type hierarchy is only relevant for queries and has the following meaning: When a value query is made (e.g. all tasks with a certain variable value), a "child" type's value also matches a parameter value of the parent type. This is only supported when the parent value type's implementation of isAbstract() returns true.

      • canConvertFromTypedValue

        boolean canConvertFromTypedValue​(TypedValue typedValue)
        Determines whether the argument typed value can be converted to a typed value of this value type.
      • isAbstract

        boolean isAbstract()

        Returns whether the value type is abstract. This is not related to the term abstract in the Java language.

        Abstract value types cannot be used as types for variables but only used for querying.