com.opensymphony.workflow.loader
Class ConditionalResultDescriptor
java.lang.Object
com.opensymphony.workflow.loader.AbstractDescriptor
com.opensymphony.workflow.loader.ResultDescriptor
com.opensymphony.workflow.loader.ConditionalResultDescriptor
- All Implemented Interfaces:
- Validatable, XMLizable, Serializable
public class ConditionalResultDescriptor
- extends ResultDescriptor
- Author:
- Pat Lightbody
- See Also:
- Serialized Form
| Fields inherited from class com.opensymphony.workflow.loader.ResultDescriptor |
displayName, dueDate, hasStep, join, oldStatus, owner, postFunctions, preFunctions, split, status, step, validators |
| Fields inherited from interface com.opensymphony.workflow.util.XMLizable |
INDENT |
| Methods inherited from class com.opensymphony.workflow.loader.ResultDescriptor |
getDisplayName, getDueDate, getJoin, getOldStatus, getOwner, getPostFunctions, getPreFunctions, getSplit, getStatus, getStep, getValidators, printPostFunctions, printPreFunctions, setDisplayName, setJoin, setOldStatus, setOwner, setSplit, setStatus, setStep |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
conditions
protected List conditions
getConditions
public List getConditions()
getDestination
public String getDestination()
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- Overrides:
validate in class ResultDescriptor
- Throws:
InvalidWorkflowDescriptorException- See Also:
WorkflowLoader.load(java.io.InputStream)
writeXML
public void writeXML(PrintWriter out,
int indent)
- Specified by:
writeXML in interface XMLizable- Overrides:
writeXML in class ResultDescriptor
init
protected void init(org.w3c.dom.Element conditionalResult)
- Overrides:
init in class ResultDescriptor