filenet.vw.api
Class VWInstructionDefinition
- java.lang.Object
-
- filenet.vw.api.VWInstructionDefinition
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- VWInvokeInstruction, VWReceiveInstruction, VWReplyInstruction, VWRollbackInstruction, VWSimpleInstruction, VWWFEInstruction
public abstract class VWInstructionDefinition extends java.lang.Object implements java.io.Serializable, java.lang.CloneableThis class represents an individual instruction within a compound step definition. Note that it is abstract and that its subclasses are listed in the section immediately above. An instruction comprises the following:
- an instruction id
- an action specifier: see VWActionType.
- the set of parameters needed for that particular action
Below are some common examples of needed parameters:
- call instruction: requires the name of the workflow map (instruction sheet) to be called
- assignment action: requires a set of left and right values of the assignment
- terminate: requires no parameters
Note some methods accept a variable number of parameters.
- Since:
- VWWS4.20
- See Also:
VWMapDefinition,VWMapNode,VWCompoundStepDefinition,VWActionType,VWException, Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description intgetAction()Gets the action.intgetInstructionId()Gets the instruction id.VWCompoundStepDefinitiongetStep()get a reference to the containing VWCompound step definition.abstract java.lang.StringtoString()Gets a string representation of this object.abstract voidtoXML(java.lang.StringBuffer theBuffer)Deprecated.abstract voidvalidate(VWSession theSession, java.util.Vector EDefHandler, VWCompoundStepDefinition myStep)
-
-
-
Method Detail
-
validate
public abstract void validate(VWSession theSession, java.util.Vector EDefHandler, VWCompoundStepDefinition myStep) 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.EDefHandler- 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.- Throws:
VWException- Thrown if an error occurs during the validation.
-
toXML
public abstract void toXML(java.lang.StringBuffer theBuffer) throws VWExceptionDeprecated. UseVWXMLConfiguration.makeXMLBlock(IVWtoXML[]).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:
VWXMLConfiguration
-
toString
public abstract java.lang.String toString()
Gets a string representation of this object. Useful for debugging: allows caller to "print" a string identification of the object, usually the name.- Overrides:
toStringin classjava.lang.Object
-
getInstructionId
public int getInstructionId()
Gets the instruction id.- Returns:
- the instruction id of the instruction
-
getAction
public int getAction()
Gets the action.- Returns:
- the integer representation of the action of the instruction
- See Also:
VWActionType
-
getStep
public VWCompoundStepDefinition getStep()
get a reference to the containing VWCompound step definition.
-
-