| com.opensymphony.workflow.Validator
All known Subclasses: com.opensymphony.workflow.util.bsf.BSFValidator, com.opensymphony.workflow.util.WebWorkValidator, com.opensymphony.workflow.util.beanshell.BeanShellValidator, com.opensymphony.workflow.util.ejb.remote.RemoteEJBValidator, com.opensymphony.workflow.util.ejb.local.LocalEJBValidator, com.opensymphony.workflow.util.jndi.JNDIValidator,
Validator | public interface Validator (Code) | | Interface that must be implemented to define a java-based validator in your workflow definition.
author: Patrick Lightbody |
Method Summary | |
public void | validate(Map transientVars, Map args, PropertySet ps) Validates the user input.
Parameters: transientVars - Variables that will not be persisted. |
validate | public void validate(Map transientVars, Map args, PropertySet ps) throws InvalidInputException, WorkflowException(Code) | | Validates the user input.
Parameters: transientVars - Variables that will not be persisted. These include inputsgiven in the Workflow.initialize and Workflow.doAction method calls.There are a number of special variable names:Also, any variable set as a com.opensymphony.workflow.Register), will also beavailable in the transient map. These transient variables only last throughthe method call that they were invoked in, such as Workflow.initializeand Workflow.doAction. Parameters: args - The properties for this function invocation. Properties are createdfrom arg nested elements within the xml, an arg element takes in a name attributewhich is the properties key, and the CDATA text contents of the element map tothe property value. Parameters: ps - The persistent variables that are associated with the currentinstance of the workflow. Any change made to the propertyset are persisted tothe propertyset implementation's persistent store. throws: InvalidInputException - if the input is deemed to be invalid |
|
|