Class VWStepDefinition
- java.lang.Object
-
- filenet.vw.api.VWMapNode
-
- filenet.vw.api.VWStepDefinition
-
- All Implemented Interfaces:
- filenet.vw.api.IVWCanCreateParameters, IVWPastable, java.io.Serializable, java.lang.Cloneable
public final class VWStepDefinition extends VWMapNode implements java.io.Serializable, filenet.vw.api.IVWCanCreateParameters, java.lang.Cloneable
Use this class to create, delete, or modify step properties. Each step in a workflow map has a unique ID representing a unique logical unit of work in the workflow process sequence.- Since:
- VWWS3.10
- See Also:
VWRouteDefinition,VWParameterDefinition,VWMapDefinition,VWMapNode,VWJoinType,VWSplitType,VWException, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static intLVALUEValue of 0: Used as a subscript for the pre or post-assignment arrays.static intRVALUEValue of 1: Used as a subscript for the pre or post-assignment arrays.-
Fields inherited from class filenet.vw.api.VWMapNode
POST_RULESETS, PRE_RULESETS, UPDATE_RULESETS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description VWParameterDefinitioncreateParameter(java.lang.String theName, int theMode, java.lang.String theValue, int theType, boolean theIsArray)Creates a parameter with name, direction, value, and type information.voiddeleteParameter(java.lang.String theName)Deletes a parameter definition from the set of parameter definitions stored in this step.booleangetCanReassign()Indicates whether the user can reassign this step.booleangetCanViewHistory()Indicates whether the user can view the history at the current step.booleangetCanViewStatus()Gets the current value of the flag that indicates whether or not the user can view the status of the current step.longgetDeadline()Gets the deadline value for the step.java.lang.StringgetDeadlineExpr()Retrieves the value of the deadline expression property for this step definition.java.lang.StringgetDeadlineMap()Gets the name of the map to be called when the step deadline expires for this step definition.booleangetIgnoreInvalidUsers()Gets the current value of the flag which determines how an invalid step participant will be treated at run time.java.lang.StringgetOnSaveMap()Gets the name of the map to be executed when the work item is saved.java.lang.StringgetOperationName()Gets the name of the operation associated with this step.java.lang.String[]getOperationParameters()Gets the parameter expressions for the operation associated with this step.VWParameterDefinitiongetParameterDefinition(java.lang.String theName)Gets a parameter definition from the set of parameter definitions stored in this step definition.VWParameterDefinition[]getParameterDefinitions()Gets the parameter definitions stored in this step definition.VWParticipant[]getParticipants()Gets the participants property value for the step.java.lang.String[][]getPostAssignments()Gets the field values that are to be performed after the step is processed (seeVWStepDefinition.setPostAssignments(java.lang.String[][])).java.lang.StringgetPostMap()Gets the name of the map to be executed after the post assignments are executed as the step is being dispatched to the next instruction for this step definition.java.lang.StringgetPostMilestone()Gets this step's post-milestone property.java.lang.String[][]getPreAssignments()Gets the field values that are to be performed before the step is processed (seeVWStepDefinition.setPreAssignments(java.lang.String[][])).java.lang.StringgetPreMap()Gets the name of the map to be executed after the pre assignments are executed before the step.java.lang.StringgetPreMilestone()Returns this step's pre-milestone property, which is the name of a milestone in this workflow that is reached just after this step executes.java.lang.StringgetQueueName()Gets the name of the queue associated with this step.longgetReminder()Gets this step's reminder property.java.lang.StringgetReminderExpr()Retrieves the value of the reminder expression property for this step definition.java.lang.StringgetReminderMap()Gets the name of the map to be called when the step reminder expires for this step definition.java.lang.StringgetRequestedInterface()Gets the name of the interface used for the step (usually a step processor name associated with the top level UI).java.lang.String[]getResponses()Gets the responses to this step.VWSessiongetSession()Get the session associated with this parameter container definition.voidreorderStepParameters(VWParameterDefinition[] theStepParameters)Changes the order in which the step parameters are stored in this step definition.voidsetCanReassign(boolean theFlag)Sets the canReassign property of the step: inputting TRUE will signify that the user can reassign the current step.voidsetCanViewHistory(boolean bFlag)Sets the step's canViewHistory property to specify whether the user can view the history at this step.voidsetCanViewStatus(boolean theFlag)Sets the step's canViewStatus property to specify whether the user can view the status of this step.voidsetDeadline(long theDeadline)Sets the deadline for this step.voidsetDeadlineExpr(java.lang.String theDeadlineExpr)Sets the value of the deadline expression property for this step definition.voidsetDeadlineMap(java.lang.String theDeadlineMap)Changes the name of the map to be called when the step deadline expires for this step definition.voidsetIgnoreInvalidUsers(boolean theFlag)Sets the ignoreInvalidUsers property of the step:truesignifies that an invalid participant in this step at run time will not cause an exception.voidsetOnSaveMap(java.lang.String theOnSaveMap)Changes the name of the map to be executed when the work item is saved.voidsetOperationName(java.lang.String theName)Sets (or associates) an operation with the current step.voidsetOperationParameters(java.lang.String[] theParams)Specifies the parameter expressions for the operation associated with this step.voidsetParticipants(VWParticipant[] theParticipants)Sets the participant's property value for the step.voidsetPostAssignments(java.lang.String[][] thePostAssignments)Defines the field values to be performed after the step is processed.voidsetPostMap(java.lang.String thePostMap)Changes the name of the map executed after the post assignments are executed as the step is being dispatched to the next instruction for this step definition.voidsetPostMilestone(java.lang.String mileStoneName)Sets this step's post-milestone property, which is the name of a milestone in this workflow which is reached just after this step finishes execution.voidsetPreAssignments(java.lang.String[][] thePreAssignments)Defines the field values to be performed before the step is processed.voidsetPreMap(java.lang.String thePreMap)Changes the name of the map to be executed after the pre assignments are executed before the step.voidsetPreMilestone(java.lang.String mileStoneName)Sets this step's pre-milestone property, which is the name of a milestone in this workflow which is reached just before this step begins execution.voidsetQueueName(java.lang.String theName)Associates the named queue with the current step.voidsetReminder(long theReminder)Sets the reminder value for the step.voidsetReminderExpr(java.lang.String theReminderExpr)Sets the value of the reminder expression property for this step definition.voidsetReminderMap(java.lang.String theReminderMap)Changes the name of the map to be called when the step reminder expires for this step definition.voidsetRequestedInterface(java.lang.String theInterface)Specifies the interface the step is to use (usually a step processor name associated with the top level UI).voidsetResponses(java.lang.String[] theResponses)Sets the responses to this step.java.lang.StringtoString()Gets the name of the step definition object.voidtoXML(java.lang.StringBuffer theBuffer)voidtoXPDL(java.lang.String indentA, java.lang.StringBuffer theBuffer)voidvalidate(VWSession theSession, java.util.Vector EDefVector)Deprecated.Use VWWorkflowDefinition or VWWorkflowCollectionDefinition validate methods.-
Methods inherited from class filenet.vw.api.VWMapNode
createRoute, deleteRoute, getAttributeInfo, getAuthoredName, getAuthorTool, getDescription, getDocumentation, getJoinType, getLocation, getName, getNextRoutes, getNodeType, getPreviousRoutes, getRoute, getRouteFrom, getRouteTo, getSession, getSplitType, getStepId, reorderRoutes, setAttributeInfo, setAuthorTool, setDescription, setDocumentation, setJoinType, setLocation, setName, setSplitType
-
-
-
-
Field Detail
-
LVALUE
public static final int LVALUE
Value of 0: Used as a subscript for the pre or post-assignment arrays.- See Also:
- Constant Field Values
-
RVALUE
public static final int RVALUE
Value of 1: Used as a subscript for the pre or post-assignment arrays.- See Also:
- Constant Field Values
-
-
Method Detail
-
createParameter
public VWParameterDefinition createParameter(java.lang.String theName, int theMode, java.lang.String theValue, int theType, boolean theIsArray) throws VWException
Creates a parameter with name, direction, value, and type information.- Specified by:
createParameterin interfacefilenet.vw.api.IVWCanCreateParameters- Parameters:
theName- The name of the parameter definition.theMode- An integer value specifying the mode of the parameter.theValue- A String representation of the value of the parameter definition.theType- An integer value specifying the field type that applies to the value expression.theIsArray- A boolean expression: TRUE specifies the value expression as an array; otherwise, specify FALSE.- Returns:
- A VWParameterDefinition object that represents the newly created parameter definition.
- Throws:
VWException- Triggers include the following:- Invalid theName parameter
- Parameter by that name already exists
- Invalid field type
- Invalid mode type
- See Also:
VWParameterDefinition,VWModeType
-
deleteParameter
public void deleteParameter(java.lang.String theName) throws VWExceptionDeletes a parameter definition from the set of parameter definitions stored in this step.- Parameters:
theName- The name of the parameter definition to be deleted.- Throws:
VWException- One example of an exception situation would be if the input parameter name were invalid.- See Also:
VWParameterDefinition
-
getParameterDefinition
public VWParameterDefinition getParameterDefinition(java.lang.String theName) throws VWException
Gets a parameter definition from the set of parameter definitions stored in this step definition.- Parameters:
theName- A String containing the name of the parameter. 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 VWParameterDefinition object for the specified parameter.
- Throws:
VWException- Thrown if the specified parameter cannot be found.- See Also:
VWParameterDefinition
-
getParameterDefinitions
public VWParameterDefinition[] getParameterDefinitions() throws VWException
Gets the parameter definitions stored in this step definition. If a translation source exists, the authored names are 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:
- An array of VWParameterDefinition objects that contains the parameter definitions for this step. If a translation source exists, the translated parameter names are returned; otherwise, the authored names are returned.
- Throws:
VWException- Thrown if the returned array contains an object of an unsupported type.- See Also:
VWParameterDefinition
-
getCanReassign
public boolean getCanReassign()
Indicates whether the user can reassign this step.- Returns:
trueindicates the user is allowed to reassign the current step;falseindicates the user is denied the ability to reassign the step.
-
setCanReassign
public void setCanReassign(boolean theFlag)
Sets the canReassign property of the step: inputting TRUE will signify that the user can reassign the current step.- Parameters:
theFlag-trueallows the user to reassign the current step;falsedenies the user the ability to reassign the step.
-
getIgnoreInvalidUsers
public boolean getIgnoreInvalidUsers()
Gets the current value of the flag which determines how an invalid step participant will be treated at run time.- Returns:
truemeans invalid participants will be ignored at run time;falsemeans that an invalid participant will cause an exception at run time.
-
setIgnoreInvalidUsers
public void setIgnoreInvalidUsers(boolean theFlag)
Sets the ignoreInvalidUsers property of the step:truesignifies that an invalid participant in this step at run time will not cause an exception. This flag can be used by a workflow designer to control the run time behavior in situations where a user may no longer exist in the security system, but may still occur in the participant list of a step.- Parameters:
theFlag-truemeans invalid participants will be ignored at run time;falsemeans that an invalid participant will cause an exception at run time.
-
getCanViewStatus
public boolean getCanViewStatus()
Gets the current value of the flag that indicates whether or not the user can view the status of the current step.- Returns:
truemeans that the user can view the status of the step;falsemeans that the user cannot view the status on the current step.
-
setCanViewStatus
public void setCanViewStatus(boolean theFlag)
Sets the step's canViewStatus property to specify whether the user can view the status of this step.- Parameters:
theFlag- Specifytrueto allow the user to view the status of the step; specifyfalseto deny the ability to view the status on the current step.
-
getCanViewHistory
public boolean getCanViewHistory()
Indicates whether the user can view the history at the current step.- Returns:
trueif the user is allowed to view the history of the step;false, otherwise.- Since:
- eP6.0
-
setCanViewHistory
public void setCanViewHistory(boolean bFlag)
Sets the step's canViewHistory property to specify whether the user can view the history at this step.- Parameters:
bFlag- specifytruefor the user to view the history of the current step;falseto deny the ability to view the history on the current step.- Since:
- eP6.0
-
toString
public java.lang.String toString()
Gets the name of the step definition object.
-
getParticipants
public VWParticipant[] getParticipants()
Gets the participants property value for the step.- Returns:
- An array of VWParticipant objects representing the participants for the current step.
- See Also:
VWParticipant
-
setParticipants
public void setParticipants(VWParticipant[] theParticipants)
Sets the participant's property value for the step.- Parameters:
theParticipants- An array of VWParticipant objects that represent the name of the set of participants to be associated with the step.- See Also:
VWParticipant
-
getQueueName
public java.lang.String getQueueName()
Gets the name of the queue associated with this step. If a translation source exists, the authored queue 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 queue name, if a translation source exists; otherwise the authored name is returned. If the queue name cannot be found, null is returned.
- See Also:
VWQueueDefinition
-
setQueueName
public void setQueueName(java.lang.String theName) throws VWExceptionAssociates the named queue with the current step.- Parameters:
theName- The name of the queue with which you wish to associate the step.- Throws:
VWException- See Also:
VWQueueDefinition
-
getOperationName
public java.lang.String getOperationName()
Gets the name of the operation associated with this step. 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 the operation associated with the step, if a translation source exists; otherwise, the authored name is returned. If this step has no associated operation, null is returned.
- See Also:
VWOperationDefinition
-
setOperationName
public void setOperationName(java.lang.String theName) throws VWExceptionSets (or associates) an operation with the current step.- Parameters:
theName- The name of the operation with which you wish to associate the step.- Throws:
VWException- See Also:
VWOperationDefinition
-
getOperationParameters
public java.lang.String[] getOperationParameters()
Gets the parameter expressions for the operation associated with this step.- Returns:
- A String array containing the parameter expressions for the operation associated with the step. If this step has no associated operation parameters, the method returns null.
- See Also:
VWOperationDefinition,setOperationParameters
-
setOperationParameters
public void setOperationParameters(java.lang.String[] theParams) throws VWExceptionSpecifies the parameter expressions for the operation associated with this step.- Parameters:
theParams- A String array containing the parameters for the operation associated with this step.- Throws:
VWException- See Also:
VWOperationDefinition,getOperationParameters
-
getRequestedInterface
public java.lang.String getRequestedInterface()
Gets the name of the interface used for the step (usually a step processor name associated with the top level UI).- Returns:
- A String containing the name of the interface for the step. If no requested interface for the step, the method returns null.
- See Also:
setRequestedInterface
-
setRequestedInterface
public void setRequestedInterface(java.lang.String theInterface)
Specifies the interface the step is to use (usually a step processor name associated with the top level UI).- Parameters:
theInterface- A String containing the name of the interface for the step.- See Also:
getRequestedInterface
-
getResponses
public java.lang.String[] getResponses()
Gets the responses to this step. If a translation source exists, the authored responses are 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 responses, if a translation source exists; otherwise the authored responses are returned. If no responses are found for this step, null is returned.
- See Also:
setResponses
-
setResponses
public void setResponses(java.lang.String[] theResponses) throws VWExceptionSets the responses to this step.- Parameters:
theResponses- A String array containing the responses to use for this step. Leading and trailing white space is trimmed from the responses.- Throws:
VWException- See Also:
getResponses
-
getDeadline
public long getDeadline()
Gets the deadline value for the step. The dead line value represents the number of minutes between receipt of the step by an application and expiration of the dead line timer at run time. A deadline property value of 0 means the step has no deadline.- Returns:
- A long indicating the value of the deadline property for the step. A value of zero means the step has no deadline, a value greater than zero is the number of minutes after work on the step begins that the deadline will expire. A value of -1 indicates that the step has a time expression that cannot be converted to a long.
- See Also:
getDeadlineExpr,setDeadlineExpr
-
setDeadline
public void setDeadline(long theDeadline) throws VWExceptionSets the deadline for this step. The deadline value represents the number of minutes between receipt of the step by an application and expiration of the step's deadline timer at run time. A deadline value of 0 means the step has no deadline.- Parameters:
theDeadline- A long specifying the dead line period, in minutes.- Throws:
VWException- Thrown if the theDeadline parameter contains a negative value.- See Also:
getDeadline
-
getDeadlineExpr
public java.lang.String getDeadlineExpr() throws VWExceptionRetrieves the value of the deadline expression property for this step definition. The deadline value is a time expression used to calculate the expiration of the deadline timer at run time.- Returns:
- A String containing a time expression or, for backward compatibility, a number equal to the number of minutes after work begins that the deadline will expire. A returned deadline value of null means the step has no deadline.
- Throws:
VWException- See Also:
setDeadlineExpr
-
setDeadlineExpr
public void setDeadlineExpr(java.lang.String theDeadlineExpr) throws VWExceptionSets the value of the deadline expression property for this step definition. The deadline value is a time expression used to calculate the expiration of the deadline timer at run time.- Parameters:
theDeadlineExpr- A String containing the time expression or (for backward compatibility) a number equal to the number of minutes after work begins that the deadline will expire.- Throws:
VWException- See Also:
getDeadlineExpr
-
getDeadlineMap
public java.lang.String getDeadlineMap()
Gets the name of the map to be called when the step deadline expires for this step definition. If a translation source exists, the authored map 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 map name, if a translation source exists; otherwise, the authored name is returned.
-
setDeadlineMap
public void setDeadlineMap(java.lang.String theDeadlineMap)
Changes the name of the map to be called when the step deadline expires for this step definition.- Parameters:
theDeadlineMap- A String containing the name of the map to be called when the step deadline expires.
-
getPostMilestone
public java.lang.String getPostMilestone()
Gets this step's post-milestone property. This is the name of a milestone in this workflow that is reached just after this step finishes execution.- Returns:
- Name of a milestone in this workflow which is reached just after this step finishes execution, after any post-assignments are carried out. This may be null if there is no post-milestone associated with this step.
-
setPostMilestone
public void setPostMilestone(java.lang.String mileStoneName) throws VWExceptionSets this step's post-milestone property, which is the name of a milestone in this workflow which is reached just after this step finishes execution.- Parameters:
mileStoneName- Name of a milestone in this workflow which is reached just after this step finishes execution, after any post-assignments are carried out. May be null, which clears the post-milestone.- Throws:
VWException- Thrown if the milestone name is invalid.
-
setPreMilestone
public void setPreMilestone(java.lang.String mileStoneName) throws VWExceptionSets this step's pre-milestone property, which is the name of a milestone in this workflow which is reached just before this step begins execution.- Parameters:
mileStoneName- Name of a milestone in this workflow which is reached just before this step begins execution, after any pre-assignments are carried out. May be null, which clears the pre milestone.- Throws:
VWException- Thrown if the milestone name is invalid
-
getPreMilestone
public java.lang.String getPreMilestone()
Returns this step's pre-milestone property, which is the name of a milestone in this workflow that is reached just after this step executes.- Returns:
- the name of a milestone in this workflow which is reached just after this step executes, after any pre-assignments are carried out. May be null if there is no pre-milestone associated with this step.
-
getReminder
public long getReminder()
Gets this step's reminder property. The reminder value represents the number of minutes prior to expiration of the deadline timer at which the reminder timer expires at run time.- Returns:
- A number representing the value of the reminder property for the step; if no reminder values exists, that is the reminder property contains 0 (zero), the step has no associated reminder. A value of -1 indicates that the step has a reminder time expression that cannot be converted to a long.
- See Also:
getDeadlineExpr,setReminderExpr
-
setReminder
public void setReminder(long theReminder) throws VWExceptionSets the reminder value for the step. The reminder value represents the number of minutes prior to expiration of the deadline timer at which the reminder timer expires at run time. A reminder property value of 0 (zero) means the step has no reminder.- Parameters:
theReminder- A number specifying the reminder period, in minutes.- Throws:
VWException- The method throws an exception if theReminder parameter contains a negative value.- Since:
- CPE 5.2.0.3
- See Also:
getDeadlineExpr,setReminderExpr
-
getReminderExpr
public java.lang.String getReminderExpr() throws VWExceptionRetrieves the value of the reminder expression property for this step definition. The reminder is an expression that represents the the number of minutes prior to expiration of the deadline timer at run time.- Returns:
- A String containing a time expression. A returned reminder value of null means the step has no reminder.
- Throws:
VWException- Since:
- CPE 5.2.0.3
- See Also:
setReminderExpr
-
setReminderExpr
public void setReminderExpr(java.lang.String theReminderExpr) throws VWExceptionSets the value of the reminder expression property for this step definition. The reminder is an expression represents the the number of minutes that should be used in the calculation prior to expiration of the deadline timer at run time.- Parameters:
theReminderExpr- A String containing the time expression when the reminder will expire.- Throws:
VWException- Since:
- CPE 5.2.0.3
- See Also:
getReminderExpr
-
getPreMap
public java.lang.String getPreMap()
Gets the name of the map to be executed after the pre assignments are executed before the step. If a translation source exists, the authored map name 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 map name, if a translation source exists; otherwise, the authored name is returned.
- Since:
- CPE 5.2.0.3
-
setPreMap
public void setPreMap(java.lang.String thePreMap)
Changes the name of the map to be executed after the pre assignments are executed before the step.- Parameters:
thePreMap- A String containing the name of the map to be called when the step reminder expires.- Since:
- CPE 5.2.0.3
-
getPostMap
public java.lang.String getPostMap()
Gets the name of the map to be executed after the post assignments are executed as the step is being dispatched to the next instruction for this step definition. If a translation source exists, the authored map name 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 map name, if a translation source exists; otherwise, the authored name is returned.
- Since:
- CPE 5.2.0.3
-
setPostMap
public void setPostMap(java.lang.String thePostMap)
Changes the name of the map executed after the post assignments are executed as the step is being dispatched to the next instruction for this step definition.- Parameters:
theReminderMap- A String containing the name of the map to be called when the step reminder expires.- Since:
- CPE 5.2.0.3
-
getReminderMap
public java.lang.String getReminderMap()
Gets the name of the map to be called when the step reminder expires for this step definition. If a translation source exists, the authored map name 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 map name, if a translation source exists; otherwise, the authored name is returned.
- Since:
- CPE 5.2.0.3
-
setReminderMap
public void setReminderMap(java.lang.String theReminderMap)
Changes the name of the map to be called when the step reminder expires for this step definition.- Parameters:
theReminderMap- A String containing the name of the map to be called when the step reminder expires.- Since:
- CPE 5.2.0.3
-
getOnSaveMap
public java.lang.String getOnSaveMap()
Gets the name of the map to be executed when the work item is saved. The execution of the map will cause the step to be unlocked. If a translation source exists, the authored map name 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 map name, if a translation source exists; otherwise, the authored name is returned.
- Since:
- CPE 5.2.0.3
-
setOnSaveMap
public void setOnSaveMap(java.lang.String theOnSaveMap)
Changes the name of the map to be executed when the work item is saved. The execution of the map will cause the step to be unlocked.- Parameters:
theOnSaveMap- A String containing the name of the map to be called when the work item is saved.- Since:
- CPE 5.2.0.3
-
getPreAssignments
public java.lang.String[][] getPreAssignments()
Gets the field values that are to be performed before the step is processed (seeVWStepDefinition.setPreAssignments(java.lang.String[][])).- Returns:
- A two-dimensional String array containing pairs of left and right values of assignment operations that are to be performed when the post-assignments instruction executes.
- See Also:
VWStepDefinition.LVALUE,VWStepDefinition.RVALUE,VWStepDefinition.setPostAssignments(java.lang.String[][]),VWStepDefinition.getPostAssignments()
-
setPreAssignments
public void setPreAssignments(java.lang.String[][] thePreAssignments) throws VWExceptionDefines the field values to be performed before the step is processed.- Parameters:
thePreAssignments- A two-dimensional String array containing pairs of left and right values of assignment operations that are to be performed when this instruction executes. The number elements in one of the array dimensions is the number of assignment operations to be executed when the instruction runs.The first array dimension contains the left-side values of a set of assignment operations. Each String is a field name. The field name can be subscripted (myField or myArrayField[3], for example).
The second array dimension contains the right-side values of a set of assignment operations. Each of these Strings can be any valid Process Engine expression (a literal constant, a number, a field name, an arithmetic expression, a boolean expression, or a function call).
- Throws:
VWException- Thrown if specified two-dimensional array is not properly dimensioned, or if any elements in the array are null.- See Also:
VWStepDefinition.LVALUE,VWStepDefinition.RVALUE,VWStepDefinition.setPostAssignments(java.lang.String[][]),VWStepDefinition.getPostAssignments(),VWStepDefinition.getPreAssignments()
-
getPostAssignments
public java.lang.String[][] getPostAssignments()
Gets the field values that are to be performed after the step is processed (seeVWStepDefinition.setPostAssignments(java.lang.String[][])).- Returns:
- A two-dimensional String array containing pairs of left and right values of assignment operations that are to be performed when the post-assignments instruction executes.
- See Also:
VWStepDefinition.LVALUE,VWStepDefinition.RVALUE,VWStepDefinition.getPreAssignments(),VWStepDefinition.setPreAssignments(java.lang.String[][])
-
setPostAssignments
public void setPostAssignments(java.lang.String[][] thePostAssignments) throws VWExceptionDefines the field values to be performed after the step is processed.- Parameters:
thePostAssignments- A two-dimensional String array containing pairs of left and right values of assignment operations that are to be performed when this instruction executes. The number elements in one of the array dimensions is the number of assignment operations to be executed when the instruction runs.The first array dimension contains the left-side values of a set of assignment operations. Each String is a field name. The field name can be subscripted (myField or myArrayField[3], for example).
The second array dimension contains the right-side values of a set of assignment operations. Each of these Strings can be any valid Process Engine expression (a literal constant, a number, a field name, an arithmetic expression, a boolean expression, or a function call).
- Throws:
VWException- Thrown if specified two-dimensional array is not properly dimensioned, or if any elements in the array are null.- See Also:
VWStepDefinition.LVALUE,VWStepDefinition.RVALUE,VWStepDefinition.setPreAssignments(java.lang.String[][]),VWStepDefinition.getPreAssignments(),VWStepDefinition.getPostAssignments()
-
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.
- Specified by:
toXMLin classVWMapNode- 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 representing this instance to the buffer specified.Warning: This XPDL string is nonextensible, and cannot be modified in any way.
- Specified by:
toXPDLin classVWMapNode- 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
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.- Specified by:
validatein classVWMapNode- 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.
-
reorderStepParameters
public void reorderStepParameters(VWParameterDefinition[] theStepParameters) throws VWException
Changes the order in which the step parameters are stored in this step definition. At runtime, this defines the order of the VWParameters that are retrieved from a VWStepElement object.- Parameters:
theStepParameters- The reordered array of VWParameterDefinition objects that were retrieved from this step definition.- Throws:
VWException- Thrown if the input parameter (theStepParameters) that defines the order the step parameters is invalid. This could result from that parameter having the wrong number of elements or an inconsistent content.- Since:
- PE 5.2.0.1
- See Also:
VWParameterDefinition,#getStepParameters(),VWStepDefinition.createParameter(String, int, String, int, boolean)
-
getSession
public VWSession getSession() throws VWException
Get the session associated with this parameter container definition.- Returns:
- The session associated with this parameter container definition, may return null.
- Throws:
VWException
-
-