Class VWFaultDefinition
- java.lang.Object
-
- filenet.vw.api.VWFaultDefinition
-
- All Implemented Interfaces:
- java.io.Serializable
public final class VWFaultDefinition extends java.lang.Object implements java.io.SerializableUse the VWFaultDefinition class to retrieve and set the name, map name (optional), and message for a Web Services fault, represented by a VWFaultDefinition object. Additional functions of methods in this class include validating a fault or converting a fault into an XML String.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description java.lang.StringgetFaultMapName()Gets the fault map name for this instance.java.lang.StringgetFaultMessage()Gets the fault message for this instance.java.lang.StringgetName()Gets the name of this fault definition.VWSessiongetSession()Get the session associated with this event definition.voidsetFaultMapName(java.lang.String theFaultMapName)Sets the fault map name of this fault definition.voidsetFaultMessage(java.lang.String theFaultMessage)Sets the fault message of this fault definition.voidsetName(java.lang.String theName)Sets the name of this fault definition, which must be unique (within the containing invoke instruction), non-null, and non-empty.voidtoXML(java.lang.StringBuffer theBuffer)voidtoXPDL(java.lang.String indentA, java.lang.StringBuffer theBuffer, boolean isCatchAll, VWCompoundStepDefinition myCompoundStep)voidvalidate(VWSession theSession, java.util.Vector EDefVector, VWCompoundStepDefinition myStep, int instId, int faultId)Deprecated.Use VWWorkflowDefinition or VWWorkflowCollectionDefinition validate methods.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name of this fault definition. If a translation source exists, the authored name of this instance 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).
- Returns:
- A String containing the translated name of this instance, if a translation source exists; otherwise the authored name is returned.
-
getFaultMapName
public java.lang.String getFaultMapName()
Gets the fault map name for this instance. If a translation source exists, the authored name of the field 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).
- Returns:
- A String containing the translated fault map name, if a translation source exists; otherwise the authored name is returned.
-
getFaultMessage
public java.lang.String getFaultMessage()
Gets the fault message for this instance. If a translation source exists, the authored message 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).
- Returns:
- A String containing the translated fault message, if a translation source exists; otherwise the authored message is returned.
-
setName
public void setName(java.lang.String theName) throws VWExceptionSets the name of this fault definition, which must be unique (within the containing invoke instruction), non-null, and non-empty.- Parameters:
theName- the new name for this fault definition- Throws:
VWException
-
setFaultMapName
public void setFaultMapName(java.lang.String theFaultMapName)
Sets the fault map name of this fault definition.- Parameters:
theFaultMapName- the new fault map name for this fault definition; may benullif no fault map is used.
-
setFaultMessage
public void setFaultMessage(java.lang.String theFaultMessage)
Sets the fault message of this fault definition.- Parameters:
theFaultMessage- the new fault message for this fault definition; must be a valid, non-null, LValue String expression (able to hold a value on the left side of an assignment statement).
-
validate
public void validate(VWSession theSession, java.util.Vector EDefVector, VWCompoundStepDefinition myStep, int instId, int faultId) throws VWException
Deprecated. Use VWWorkflowDefinition or VWWorkflowCollectionDefinition validate methods.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.
myStep- The VWCompoundStepDefinition object containing this event.instId- An integer identifying the instruction ID for the VWInvokeInstruction object that contains this event.faultId- An integer identifying the fault ID of this fault (its index into the array of faults that belongs to the containing VWInvokeInstruction object), or -99. A value of -99 represents the catch all fault definition. Other index values are useful for accessing meaningful validation error messages within the array of faults in the containing invoke instruction.- Throws:
VWException- Thrown if an error occurs during the validation.- See Also:
VWCompoundStepDefinition,VWValidationError,VWInvokeInstruction
-
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, boolean isCatchAll, VWCompoundStepDefinition myCompoundStep) throws VWExceptionDeprecated. UseVWWorkflowCollectionDefinition.write(java.io.OutputStream)orVWWorkflowCollectionDefinition.writeToFile(String).Appends an XPDL string representing 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.isCatchAll- Indicates whether the fault is for a CatchAll.myCompoundStep- The VWCompoundStepDefinition object that contains this instance.- Throws:
VWException- Thrown if the specified buffer is null.- See Also:
VWWorkflowCollectionDefinition
-
getSession
public VWSession getSession() throws VWException
Get the session associated with this event definition.- Returns:
- The session associated with this event definition, may return null.
- Throws:
VWException
-
-