Class ActionDescriptor

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

public class ActionDescriptor extends AbstractDescriptor implements Validatable
Author:
Pat Lightbody
See Also:
  • Field Details

    • 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
  • Method Details

    • 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

      @Deprecated public boolean isFinish()
      Deprecated.
      Since v2.9.0 this will always return false as we do not support finish actions.
      Returns:
      always returns false
    • 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:
    • writeXML

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

      protected void init(Element action)