com.opensymphony.workflow.loader
Class ActionDescriptor

java.lang.Object
  extended by com.opensymphony.workflow.loader.AbstractDescriptor
      extended by com.opensymphony.workflow.loader.ActionDescriptor
All Implemented Interfaces:
Validatable, XMLizable, Serializable

public class ActionDescriptor
extends AbstractDescriptor
implements Validatable

Author:
Pat Lightbody
See Also:
Serialized Form

Field Summary
protected  boolean autoExecute
           
protected  boolean common
           
protected  List conditionalResults
           
protected  boolean finish
           
protected  Map metaAttributes
           
protected  String name
           
protected  List postFunctions
           
protected  List preFunctions
           
protected  RestrictionDescriptor restriction
           
protected  ResultDescriptor unconditionalResult
           
protected  List validators
           
protected  String view
           
 
Fields inherited from interface com.opensymphony.workflow.util.XMLizable
INDENT
 
Method Summary
 boolean getAutoExecute()
           
 List getConditionalResults()
           
 Map getMetaAttributes()
           
 String getName()
           
 List getPostFunctions()
           
 List getPreFunctions()
           
 RestrictionDescriptor getRestriction()
           
 ResultDescriptor getUnconditionalResult()
           
 List getValidators()
           
 String getView()
           
protected  void init(org.w3c.dom.Element action)
           
 boolean isCommon()
           
 boolean isFinish()
           
 void setAutoExecute(boolean autoExecute)
           
 void setFinish(boolean finish)
           
 void setMetaAttributes(Map metaAttributes)
           
 void setName(String name)
           
 void setRestriction(RestrictionDescriptor restriction)
           
 void setUnconditionalResult(ResultDescriptor unconditionalResult)
           
 void setView(String view)
           
 String toString()
           
 void validate()
          Validate this element, and propagate validation to all contained sub-elements.
 void writeXML(PrintWriter out, int indent)
           
 
Methods inherited from class com.opensymphony.workflow.loader.AbstractDescriptor
asXML, getEntityId, getId, getParent, hasId, setEntityId, setId, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

conditionalResults

protected List conditionalResults

postFunctions

protected List postFunctions

preFunctions

protected List preFunctions

validators

protected List validators

metaAttributes

protected Map metaAttributes

restriction

protected RestrictionDescriptor restriction

unconditionalResult

protected ResultDescriptor unconditionalResult

name

protected String name

view

protected String view

autoExecute

protected boolean autoExecute

common

protected boolean common

finish

protected boolean finish
Method Detail

setAutoExecute

public void setAutoExecute(boolean autoExecute)

getAutoExecute

public boolean getAutoExecute()

isCommon

public boolean isCommon()

getConditionalResults

public List getConditionalResults()

setFinish

public void setFinish(boolean finish)

isFinish

public boolean isFinish()

setMetaAttributes

public void setMetaAttributes(Map metaAttributes)

getMetaAttributes

public Map getMetaAttributes()

setName

public void setName(String name)

getName

public String getName()

getPostFunctions

public List getPostFunctions()

getPreFunctions

public List getPreFunctions()

setRestriction

public void setRestriction(RestrictionDescriptor restriction)

getRestriction

public RestrictionDescriptor getRestriction()

setUnconditionalResult

public void setUnconditionalResult(ResultDescriptor unconditionalResult)

getUnconditionalResult

public ResultDescriptor getUnconditionalResult()

getValidators

public List getValidators()

setView

public void setView(String view)

getView

public String getView()

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws InvalidWorkflowDescriptorException
Description copied from interface: Validatable
Validate this element, and propagate validation to all contained sub-elements. Should throw an InvalidWorkflowDescriptorException with details in message if the element is invalid. Validity checks should be checks that cannot be encapsulated in the DTD. Validation has to be called explicitly on writting, a writeXML() does not validate implicitly; it *IS* thus possible to write invalid descriptor files. This could be useful for e.g. a graphical workflow definition editor which would like to write incomplete definitions. Validation *IS* performed on loading a workflow definition.

Specified by:
validate in interface Validatable
Throws:
InvalidWorkflowDescriptorException
See Also:
WorkflowLoader.load(java.io.InputStream)

writeXML

public void writeXML(PrintWriter out,
                     int indent)
Specified by:
writeXML in interface XMLizable

init

protected void init(org.w3c.dom.Element action)

OpenSymphony Workflow Project Page