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.CloneableUse 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 Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description java.lang.Objectclone()Creates a clone of this instance.booleanequals(java.lang.Object obj)Compares the specified object with this item for equality.intgetLevel()Gets the level for this milestone.java.lang.StringgetMessage()Gets the message of this milestone.java.lang.StringgetName()Gets the name of this milestone.inthashCode()voidsetLevel(int theLevel)Sets the level for the milestone.voidsetMessage(java.lang.String theMessage)Sets the message for the milestone.voidsetName(java.lang.String theName)Sets the name for the milestone.voidtoXML(java.lang.StringBuffer theBuffer)voidtoXPDL(java.lang.String indentA, java.lang.StringBuffer theBuffer)voidvalidate(VWSession theSession, java.util.Vector EDefVector)
-
-
-
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 VWExceptionSets 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.
-
setMessage
public void setMessage(java.lang.String theMessage) throws VWExceptionSets the message for the milestone. The message expression is evaluated and the result logged when the milestone is reached at run time.- Parameters:
theMessage- An expression that conforms to workflow server grammar. Use thevalidatemethod to test message grammar.- Throws:
VWException- See Also:
VWMilestoneDefinition.validate(filenet.vw.api.VWSession, java.util.Vector)
-
getLevel
public int getLevel()
Gets the level for this milestone.- Returns:
- An integer indicating the level of the milestone.
- See Also:
VWMilestoneDefinition.setLevel(int)
-
setLevel
public void setLevel(int theLevel) throws VWExceptionSets 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.
-
toXML
public void toXML(java.lang.StringBuffer theBuffer) throws VWExceptionDeprecated. UseVWWorkflowDefinition.write(java.io.OutputStream)orVWWorkflowDefinition.writeToFile(String).Appends an XML string representing this instance to the buffer specified.Warning: This XML string is nonextensible, and cannot be modified in any way.
- Parameters:
theBuffer- A StringBuffer that will be appended with the XML content.- Throws:
VWException- Thrown if the specified buffer is null.- See Also:
VWWorkflowDefinition
-
toXPDL
public void toXPDL(java.lang.String indentA, java.lang.StringBuffer theBuffer) throws VWExceptionDeprecated. UseVWWorkflowCollectionDefinition.write(java.io.OutputStream)orVWWorkflowCollectionDefinition.writeToFile(String).Appends an XPDL string that represents this instance to the buffer specified.Warning: This XPDL string is nonextensible, and cannot be modified in any way.
- Parameters:
indentA- A String specifying the initial indentation for this XPDL section.theBuffer- A StringBuffer that will be appended with the XPDL content.- Throws:
VWException- Thrown if the specified buffer is null.- See Also:
VWWorkflowCollectionDefinition
-
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,EDefVectorwill 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:
clonein classjava.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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-