buildWorkflow(String name, Document document) Builds a workflow object from an XML document.
Parameters: name - The workflow name. Parameters: document - The XML document.
protected boolean
isInitialStateElement(Element element) Checks if a state element contains the initial state.
Parameters: element - An XML element.
Field Detail
ASSIGNMENT_ELEMENT
final protected static String ASSIGNMENT_ELEMENT(Code)
CLASS_ATTRIBUTE
final protected static String CLASS_ATTRIBUTE(Code)
CONDITION_ELEMENT
final protected static String CONDITION_ELEMENT(Code)
DESTINATION_ATTRIBUTE
final protected static String DESTINATION_ATTRIBUTE(Code)
Builds an assignment object from an XML element.
Parameters: element - An XML element. An assignment object. throws: WorkflowException - when something went wrong.
Builds a workflow schema from a file.
Parameters: name - The workflow name. Parameters: file - The file. A workflow schema implementation. throws: WorkflowException - if the file does not represent a valid workflowschema.
Builds a workflow object from an XML document.
Parameters: name - The workflow name. Parameters: document - The XML document. A workflow implementation. throws: WorkflowException - when something went wrong.