filenet.vw.api

Class VWLogDefinition

    • Method Detail

      • createFieldDefinition

        public VWExposedFieldDefinition createFieldDefinition(java.lang.String theName,
                                                              int theType,
                                                              int theLength)
                                                       throws VWException
        Creates an exposed field on this log from the supplied field name and type. Use exposed fields to create index definitions. An exposed field name must conform to the following guidelines:

        • Begin with characters other than "F_". The prefix is reserved for system fields.
        • Contain no less than 1 (one) and no more than 30 characters.
        • Contain no characters other than letters or numbers; however, an underscore ("_") is acceptable after the first letter in the name.
        • Avoid special characters.
        Specified by:
        createFieldDefinition in interface IVWTableDefinition
        Overrides:
        createFieldDefinition in class VWTableDefinition
        Parameters:
        theName - The name of the field.
        theType - An integer value specifying a valid field data type.

        Note: Arrays are not allowed. Valid type values are:

        • 1: Integer (FIELD_TYPE_INT)
        • 2: String (FIELD_TYPE_STRING)
        • 4: Boolean (FIELD_TYPE_BOOLEAN)
        • 8: Float (FIELD_TYPE_FLOAT)
        • 16: Time (FIELD_TYPE_TIME)
        theLength - An integer value specifying the length of the string data stored in the data field. The parameter is valid if the data type is string; otherwise, you must specify 0 (zero) for any other data type.
        Returns:
        An VWExposedDefinition object.
        Throws:
        VWException - Causes include an error in the supplied field name or type.
      • createIndexDefinition

        public VWIndexDefinition createIndexDefinition(java.lang.String theName,
                                                       java.lang.String[] theFieldNames)
                                                throws VWException
        Creates an index definition for the specified log.

        Specify an array of system fields and/or user-defined exposed fields to create the definition of the concatenated index. Use at least one field name to create the index.

        An index name must conform to the following guidelines:

        • Begin with characters other than "F_". The prefix is reserved for system fields.
        • Contain no less than 1 (one) and no more than 30 characters.
        • Contain no characters other than letters or numbers; however, an underscore ("_") is acceptable after the first letter in the name.
        • Avoid special characters.
        Specified by:
        createIndexDefinition in interface IVWTableDefinition
        Specified by:
        createIndexDefinition in class VWTableDefinition
        Parameters:
        theName - A String containing the name of the index field.
        theFieldNames - A String array of system fields and/or user-defined exposed fields.
        Returns:
        A VWIndexDefinition for the new index definition.
        Throws:
        VWException - Thrown if the name specified in the theName parameter is invalid, or if there are undefined fields in the index.
      • getField

        public VWExposedFieldDefinition getField(java.lang.String name)
                                          throws VWException
        Returns the specified exposed field definition for this instance. If a translation source exists, the authored field information is translated.
        Parameters:
        name - A String containing the field name.
        Returns:
        The VWExposedFieldDefinition object for the specified field. If a translation source exists the translated information for the field is returned; otherwise, the authored information is returned. If the exposed field does not exist, null is returned.
        Throws:
        VWException
        Since:
        P8 4.0
      • getIndex

        public VWIndexDefinition getIndex(java.lang.String name)
                                   throws VWException
        Gets the index definition specified for this log definition. If a translation source exists, the authored index information is translated.
        Parameters:
        name - A String containing the name of the index.
        Returns:
        The VWIndexDefinition for the index name specified. If a translation source exists the translated index information is returned; otherwise, the authored information is returned. If the index does not exist, null is returned.
        Throws:
        VWException
        Since:
        P8 4.0
      • getName

        public java.lang.String getName()
        Gets the authored name of this log.
        Specified by:
        getName in interface IVWTableDefinition
        Overrides:
        getName in class VWTableDefinition
        Returns:
        A String containing the authored name of this log.
      • getDescription

        public java.lang.String getDescription()
        Gets the description for this log definition. If a translation source exists, the authored description string is translated.

        Note: The translation is done only at runtime, so will not appear in design-time applications (such as the Process Designer or Configuration Console).

        Specified by:
        getDescription in interface IVWTableDefinition
        Overrides:
        getDescription in class VWTableDefinition
        Returns:
        A String containing the translated description, if a translation source exists; otherwise the authored description is returned.
      • toString

        public java.lang.String toString()
        Returns the string representation of the log definition.
        Specified by:
        toString in interface IVWTableDefinition
        Overrides:
        toString in class VWTableDefinition
        Returns:
        A string representation of the log definition.
      • toXML

        public void toXML(java.lang.StringBuffer theBuffer)
                   throws VWException
        Appends an XML string representing this instance to the buffer specified.

        Warning: This XML string is nonextensible, and cannot be modified in any way.

        Specified by:
        toXML in interface IVWtoXML
        Parameters:
        theBuffer - A StringBuffer that will be appended with the XML content.
        Throws:
        VWException - Thrown if the specified buffer is null.
        See Also:
        VWXMLConfiguration
      • hasChanged

        public boolean hasChanged()
                           throws VWException
        Indicate whether this log has changed.
        Returns:
        A value of true, if this log has changed; false otherwise.
        Throws:
        VWException - Thrown if an error occurs.
        Since:
        PE 4.5.0
      • optionalSystemFields

        public static VWExposedFieldDefinition[] optionalSystemFields()
                                                               throws VWException
        Returns workflow system exposed fields, which are marked as optional. The optional system fields can be exposed in a log. These system fields are not required.
        Returns:
        An array of exposed field definitions of optional workflow system fields.
        Throws:
        VWException
      • clone

        public java.lang.Object clone()
        Creates a clone of this VWLogDefinition object.
        Overrides:
        clone in class VWTableDefinition
        Returns:
        A clone of this instance.

© Copyright IBM Corporation 2002, 2019. All rights reserved.