| com.opensymphony.workflow.Condition
All known Subclasses: com.opensymphony.workflow.util.ejb.local.LocalEJBCondition, com.opensymphony.workflow.util.OSUserGroupCondition, com.opensymphony.workflow.util.AllowOwnerOnlyCondition, com.opensymphony.workflow.util.AllowOwnerOfStepCondition, com.opensymphony.workflow.util.beanshell.BeanShellCondition, com.opensymphony.workflow.util.StatusCondition, com.opensymphony.workflow.util.jndi.JNDICondition, com.opensymphony.workflow.util.ejb.remote.RemoteEJBCondition, com.opensymphony.workflow.util.DenyOwnerCondition, com.opensymphony.workflow.util.bsf.BSFCondition, com.opensymphony.workflow.util.IsUserOwnerCondition,
Condition | public interface Condition (Code) | | Interface that must be implemented to define a java-based condition in your workflow definition.
author: Patrick Lightbody |
Method Summary | |
public boolean | passesCondition(Map transientVars, Map args, PropertySet ps) Determines if a condition should signal pass or fail.
Parameters: transientVars - Variables that will not be persisted. |
passesCondition | public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws WorkflowException(Code) | | Determines if a condition should signal pass or fail.
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, no matter what. 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. There is a magic property of 'stepId ';if specified with a value of -1, then the value is replaced with thecurrent step's ID before the condition is called. Parameters: ps - The persistent variables that are associated with the currentinstance of the workflow. Any change made to this will be seen on the nextfunction call in the workflow lifetime. |
|
|