Class ResultDescriptor

java.lang.Object
com.opensymphony.workflow.loader.AbstractDescriptor
com.opensymphony.workflow.loader.ResultDescriptor
All Implemented Interfaces:
Validatable, XMLizable, Serializable
Direct Known Subclasses:
ConditionalResultDescriptor

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

    • postFunctions

      protected List postFunctions
    • preFunctions

      protected List preFunctions
    • validators

      protected List validators
    • displayName

      protected String displayName
    • dueDate

      protected String dueDate
    • oldStatus

      protected String oldStatus
    • owner

      protected String owner
    • status

      protected String status
    • hasStep

      protected boolean hasStep
    • join

      protected int join
    • split

      protected int split
    • step

      protected int step
  • Method Details

    • setDisplayName

      public void setDisplayName(String displayName)
    • getDisplayName

      public String getDisplayName()
    • getDueDate

      public String getDueDate()
    • setJoin

      public void setJoin(int join)
    • getJoin

      public int getJoin()
    • setOldStatus

      public void setOldStatus(String oldStatus)
    • getOldStatus

      public String getOldStatus()
    • setOwner

      public void setOwner(String owner)
    • getOwner

      public String getOwner()
    • getPostFunctions

      public List getPostFunctions()
    • getPreFunctions

      public List getPreFunctions()
    • setSplit

      public void setSplit(int split)
    • getSplit

      public int getSplit()
    • setStatus

      public void setStatus(String status)
    • getStatus

      public String getStatus()
    • setStep

      public void setStep(int step)
    • getStep

      public int getStep()
    • getValidators

      public List getValidators()
    • 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 result)
    • printPostFunctions

      protected void printPostFunctions(PrintWriter out, int indent)
    • printPreFunctions

      protected void printPreFunctions(PrintWriter out, int indent)