filenet.vw.api

Class VWMilestoneDefinition

  • java.lang.Object
    • filenet.vw.api.VWMilestoneDefinition
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public final class VWMilestoneDefinition
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable
    Use this class to access the name, message, level, and other properties of a milestone used in a workflow process.
    Since:
    VWWS3.10
    See Also:
    VWStepDefinition, VWWorkflowDefinition, Serialized Form
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the name of this milestone. If a translation source exists, the authored name is translated.

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

        Returns:
        A String containing the translated name of this milestone, if a translation source exists; otherwise the authored name is returned.
      • setName

        public void setName(java.lang.String theName)
                     throws VWException
        Sets the name for the milestone.
        Parameters:
        theName - A String containing the name to use for the milestone.
        Throws:
        VWException - Thrown under the following conditions:
        • The milestone name is null or has a length of zero.
        • The milestone name is the same as an existing milestone name.
      • getMessage

        public java.lang.String getMessage()
        Gets the message of this milestone.
        Returns:
        The message of the milestone.
      • setLevel

        public void setLevel(int theLevel)
                      throws VWException
        Sets the level for the milestone.
        Parameters:
        theLevel - The integer value of the new level of the milestone. This should be a value between 1 and 99, inclusive.
        Throws:
        VWException - Thrown if specified level is invalid.
      • validate

        public void validate(VWSession theSession,
                             java.util.Vector EDefVector)
                      throws VWException
        Validates this instance, appending any validation errors found to the specified Vector object. Although this method does not return a value, EDefVector will be updated to contain any validation errors found.
        Parameters:
        theSession - The current VWSession object if logged on. This is needed for various parts of the validation process. This can be null; however, areas of validation requiring a logon will not be validated.
        EDefVector - A Vector to which will be added a VWValidationError object for each validation error found. This can be null; in this case, a new Vector is used.

        Note: Because validate methods having EDefVector in the signature also occur on other classes, the existing Vector can contain validation errors from previous validation calls.

        Throws:
        VWException - Thrown if an error occurs during the validation; for example, if there is no containing workflow definition or run time milestone definition.
      • clone

        public java.lang.Object clone()
        Creates a clone of this instance.
        Overrides:
        clone in class java.lang.Object
        Returns:
        An Object that is a clone of this instance.
      • equals

        public boolean equals(java.lang.Object obj)
        Compares the specified object with this item for equality.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object

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