com.opensymphony.workflow.loader
Class ResultDescriptor

java.lang.Object
  extended by com.opensymphony.workflow.loader.AbstractDescriptor
      extended by 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:
Serialized Form

Field Summary
protected  String displayName
           
protected  String dueDate
           
protected  boolean hasStep
           
protected  int join
           
protected  String oldStatus
           
protected  String owner
           
protected  List postFunctions
           
protected  List preFunctions
           
protected  int split
           
protected  String status
           
protected  int step
           
protected  List validators
           
 
Fields inherited from interface com.opensymphony.workflow.util.XMLizable
INDENT
 
Method Summary
 String getDisplayName()
           
 String getDueDate()
           
 int getJoin()
           
 String getOldStatus()
           
 String getOwner()
           
 List getPostFunctions()
           
 List getPreFunctions()
           
 int getSplit()
           
 String getStatus()
           
 int getStep()
           
 List getValidators()
           
protected  void init(org.w3c.dom.Element result)
           
protected  void printPostFunctions(PrintWriter out, int indent)
           
protected  void printPreFunctions(PrintWriter out, int indent)
           
 void setDisplayName(String displayName)
           
 void setJoin(int join)
           
 void setOldStatus(String oldStatus)
           
 void setOwner(String owner)
           
 void setSplit(int split)
           
 void setStatus(String status)
           
 void setStep(int step)
           
 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, toString, wait, wait, wait
 

Field Detail

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 Detail

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:
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 result)

printPostFunctions

protected void printPostFunctions(PrintWriter out,
                                  int indent)

printPreFunctions

protected void printPreFunctions(PrintWriter out,
                                 int indent)

OpenSymphony Workflow Project Page