Interface InstanceDataContainer

  • All Superinterfaces:
    DataContainer, InputDataContainer, PluginDataContainer, Serializable, UserAttributeContainer

    public interface InstanceDataContainer
    extends DataContainer
    An instance data container extends a normal DataContainer and allows to conveniently set the input parameters and retrieve the output parameters of a process instance. Input parameters which are not set have an value of Null. Output parameters may be Null so check before reading the values.
    Author:
    Ulrich Kreher
    • Field Detail

      • serialVersionUID

        static final long serialVersionUID
        Generated ID for serialisation.
        See Also:
        Constant Field Values
    • Method Detail

      • setNull

        void setNull​(String parameterName)
              throws NoSuchParameterException
        Sets the value of the designated instance input parameter to NULL, which means the value is undefined.
        Parameters:
        parameterName - The name of the instance input parameter to be set to null.
        Throws:
        NoSuchParameterException - If the instance input parameter of the designated name does not exist, a NoSuchParameterException will be thrown.
      • setInteger

        void setInteger​(String parameterName,
                        long value)
                 throws InvalidDataTypeException,
                        NoSuchParameterException
        Sets the INTEGER value of the designated instance input parameter.
        Parameters:
        parameterName - The name of the instance input parameter to be set.
        value - The value as Java-type long of the instance input parameter of ADEPT2-type INTEGER.
        Throws:
        InvalidDataTypeException - If the designated instance input parameter is not of type INTEGER, an InvalidDataTypeException will be raised.
        NoSuchParameterException - If the instance input parameter of the designated name does not exist, a NoSuchParameterException will be thrown.
        See Also:
        ProcessConstants.AdeptDataType.INTEGER
      • setBoolean

        void setBoolean​(String parameterName,
                        boolean value)
                 throws InvalidDataTypeException,
                        NoSuchParameterException
        Sets the BOOLEAN value of the designated instance input parameter.
        Parameters:
        parameterName - The name of the instance input parameter to be set.
        value - The value as Java-type boolean of the instance input parameter of ADEPT2-type BOOLEAN.
        Throws:
        InvalidDataTypeException - If the designated instance input parameter is not of type BOOLEAN, an InvalidDataTypeException will be raised.
        NoSuchParameterException - If the instance input parameter of the designated name does not exist, a NoSuchParameterException will be thrown.
        See Also:
        ProcessConstants.AdeptDataType.BOOLEAN
      • setUDT

        void setUDT​(String parameterName,
                    UDTValue value)
             throws InvalidDataTypeException,
                    NoSuchParameterException
        Sets the value of the designated instance input parameter of the process instance and the corresponding metadata which is the writing node and its current iteration.
        Parameters:
        parameterName - The name of the instance input parameter to be read.
        value - The value of the instance input parameter of ADEPT2-type USERDEFINED.
        Throws:
        InvalidDataTypeException - If the designated instance input parameter is not of type USERDEFINED, an InvalidDataTypeException will be raised.
        NoSuchParameterException - If the instance input parameter of the designated name does not exist, a NoSuchParameterException will be thrown.
        See Also:
        ProcessConstants.AdeptDataType.USERDEFINED