org.infoglue.cms.applications.workflowtool.condition
Class InfoglueCondition

java.lang.Object
  extended by org.infoglue.cms.applications.workflowtool.util.InfoglueWorkflowBase
      extended by org.infoglue.cms.applications.workflowtool.condition.InfoglueCondition
All Implemented Interfaces:
com.opensymphony.workflow.Condition
Direct Known Subclasses:
HasErrors, HasFunctionStatus, PropertysetContains

public abstract class InfoglueCondition
extends InfoglueWorkflowBase
implements com.opensymphony.workflow.Condition

Base class for all infoglue workflow conditions.


Field Summary
 
Fields inherited from class org.infoglue.cms.applications.workflowtool.util.InfoglueWorkflowBase
ERROR_PROPERTYSET_PREFIX, FUNCTION_STATUS_PROPERTYSET_KEY, UTF8_ENCODING, WORKFLOW_PROPERTYSET_PREFIX
 
Constructor Summary
protected InfoglueCondition()
          Default constructor.
 
Method Summary
protected abstract  boolean passesCondition()
          Determines if a condition should signal pass or fail.
 boolean passesCondition(java.util.Map transientVars, java.util.Map args, com.opensymphony.module.propertyset.PropertySet ps)
          Determines if a condition should signal pass or fail.
 
Methods inherited from class org.infoglue.cms.applications.workflowtool.util.InfoglueWorkflowBase
argumentExists, getArgument, getArgument, getDatabase, getLogger, getParameter, getParameter, getParameter, getParameters, getPropertySet, getPropertySetDataString, getPropertySetString, getVariableFromMaps, initialize, parameterExists, propertySetContains, removeFromPropertySet, removeFromPropertySet, setParameter, setPropertySetDataString, setPropertySetString, storeContext, throwException, throwException, translate, translateVariables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoglueCondition

protected InfoglueCondition()
Default constructor.

Method Detail

passesCondition

public final boolean passesCondition(java.util.Map transientVars,
                                     java.util.Map args,
                                     com.opensymphony.module.propertyset.PropertySet ps)
                              throws com.opensymphony.workflow.WorkflowException
Determines if a condition should signal pass or fail.

Specified by:
passesCondition in interface com.opensymphony.workflow.Condition
Parameters:
transientVars - the transient variables of the current execution context.
args - the arguments of the function.
ps - the propertyset associated with the current workflow.
Returns:
true if the condition passes; false otherwise.
Throws:
com.opensymphony.workflow.WorkflowException - if an error (such as missing required argument) occurs while evaluating the condition.

passesCondition

protected abstract boolean passesCondition()
                                    throws com.opensymphony.workflow.WorkflowException
Determines if a condition should signal pass or fail.

Returns:
true if the condition passes; false otherwise.
Throws:
com.opensymphony.workflow.WorkflowException - if an error (such as missing required argument) occurs while evaluating the condition.


Copyright © 2005 InfoGlue.org All Rights Reserved.