|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.jpdl.xml.JpdlXmlReader
public class JpdlXmlReader
| Field Summary | |
|---|---|
protected org.dom4j.Document |
document
process document, available after readProcessDefinition() |
protected String |
initialNodeName
|
protected InputSource |
inputSource
|
protected ProblemListener |
problemListener
|
protected List |
problems
|
protected ProcessDefinition |
processDefinition
|
protected Collection |
unresolvedActionReferences
|
protected Collection |
unresolvedTransitionDestinations
|
| Constructor Summary | |
|---|---|
JpdlXmlReader(InputSource inputSource)
|
|
JpdlXmlReader(InputSource inputSource,
ProblemListener problemListener)
|
|
JpdlXmlReader(Reader reader)
|
|
| Method Summary | |
|---|---|
protected void |
addAction(GraphElement graphElement,
String eventType,
Action action)
|
void |
addError(String description)
|
void |
addError(String description,
Throwable exception)
|
void |
addProblem(Problem problem)
|
void |
addUnresolvedActionReference(org.dom4j.Element actionElement,
Action action)
|
void |
addUnresolvedTransitionDestination(org.dom4j.Element nodeElement,
Node node)
|
void |
addWarning(String description)
|
void |
close()
|
Action |
createAction(org.dom4j.Element actionElement)
Instantiates and configures an action. |
Delegation |
createMailDelegation(String template,
String actors,
String to,
String subject,
String text)
Deprecated. call readMailDelegation(Element) instead |
ProcessDefinition |
getProcessDefinition()
|
String |
getProperty(String property,
org.dom4j.Element element)
|
protected void |
parseProcessDefinitionAttributes(org.dom4j.Element root)
|
void |
readAction(org.dom4j.Element actionElement,
Action action)
Configures the common action parts. |
void |
readActions(org.dom4j.Element eventElement,
GraphElement graphElement,
String eventType)
Reads actions associated to the given event. |
protected Delegation |
readAssignmentDelegation(org.dom4j.Element assignmentElement)
|
boolean |
readBoolean(String text,
boolean defaultValue)
|
protected void |
readEvents(org.dom4j.Element parentElement,
GraphElement graphElement)
|
protected void |
readExceptionHandler(org.dom4j.Element exceptionHandlerElement,
GraphElement graphElement)
|
protected void |
readExceptionHandlers(org.dom4j.Element graphDomElement,
GraphElement graphElement)
|
Delegation |
readMailDelegation(org.dom4j.Element element)
|
void |
readNode(org.dom4j.Element nodeElement,
Node node,
NodeCollection nodeCollection)
|
void |
readNodes(org.dom4j.Element element,
NodeCollection nodeCollection)
|
protected void |
readNodeTimer(org.dom4j.Element timerElement,
Node node)
|
protected void |
readNodeTimers(org.dom4j.Element nodeElement,
Node node)
|
ProcessDefinition |
readProcessDefinition()
|
Action |
readSingleAction(org.dom4j.Element nodeElement)
Reads the action associated to the given node. |
void |
readStartStateTask(org.dom4j.Element startTaskElement,
StartState startState)
|
protected void |
readSwimlanes(org.dom4j.Element processDefinitionElement)
|
Task |
readTask(org.dom4j.Element taskElement,
TaskMgmtDefinition taskMgmtDefinition,
TaskNode taskNode)
|
protected TaskController |
readTaskController(org.dom4j.Element taskControllerElement)
|
void |
readTasks(org.dom4j.Element element,
TaskNode taskNode)
|
protected void |
readTaskTimer(org.dom4j.Element timerElement,
Task task)
|
protected void |
readTaskTimers(org.dom4j.Element taskElement,
Task task)
|
List |
readVariableAccesses(org.dom4j.Element element)
|
void |
resolveActionReferences()
|
Transition |
resolveTransitionDestination(org.dom4j.Element transitionElement,
Node node)
creates the transition object and configures it by the read attributes |
void |
resolveTransitionDestinations()
|
void |
resolveTransitionDestinations(List transitionElements,
Node node)
|
void |
verifySwimlaneAssignments()
|
String |
writeElementContent(org.dom4j.Element element)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected InputSource inputSource
protected List problems
protected ProblemListener problemListener
protected ProcessDefinition processDefinition
protected String initialNodeName
protected Collection unresolvedTransitionDestinations
protected Collection unresolvedActionReferences
protected org.dom4j.Document document
readProcessDefinition()
| Constructor Detail |
|---|
public JpdlXmlReader(InputSource inputSource)
public JpdlXmlReader(InputSource inputSource,
ProblemListener problemListener)
public JpdlXmlReader(Reader reader)
| Method Detail |
|---|
public void close()
throws IOException
IOExceptionpublic ProcessDefinition getProcessDefinition()
public void addProblem(Problem problem)
addProblem in interface ProblemListenerpublic void addError(String description)
public void addError(String description,
Throwable exception)
public void addWarning(String description)
public ProcessDefinition readProcessDefinition()
protected void parseProcessDefinitionAttributes(org.dom4j.Element root)
protected void readSwimlanes(org.dom4j.Element processDefinitionElement)
public void readNodes(org.dom4j.Element element,
NodeCollection nodeCollection)
public void readTasks(org.dom4j.Element element,
TaskNode taskNode)
public Task readTask(org.dom4j.Element taskElement,
TaskMgmtDefinition taskMgmtDefinition,
TaskNode taskNode)
public boolean readBoolean(String text,
boolean defaultValue)
protected Delegation readAssignmentDelegation(org.dom4j.Element assignmentElement)
protected TaskController readTaskController(org.dom4j.Element taskControllerElement)
public List readVariableAccesses(org.dom4j.Element element)
public void readStartStateTask(org.dom4j.Element startTaskElement,
StartState startState)
public void readNode(org.dom4j.Element nodeElement,
Node node,
NodeCollection nodeCollection)
protected void readNodeTimers(org.dom4j.Element nodeElement,
Node node)
protected void readNodeTimer(org.dom4j.Element timerElement,
Node node)
protected void readTaskTimers(org.dom4j.Element taskElement,
Task task)
protected void readTaskTimer(org.dom4j.Element timerElement,
Task task)
protected void readEvents(org.dom4j.Element parentElement,
GraphElement graphElement)
public void readActions(org.dom4j.Element eventElement,
GraphElement graphElement,
String eventType)
protected void addAction(GraphElement graphElement,
String eventType,
Action action)
public Action readSingleAction(org.dom4j.Element nodeElement)
public Action createAction(org.dom4j.Element actionElement)
public void readAction(org.dom4j.Element actionElement,
Action action)
protected void readExceptionHandlers(org.dom4j.Element graphDomElement,
GraphElement graphElement)
protected void readExceptionHandler(org.dom4j.Element exceptionHandlerElement,
GraphElement graphElement)
public void addUnresolvedTransitionDestination(org.dom4j.Element nodeElement,
Node node)
public void resolveTransitionDestinations()
public void resolveTransitionDestinations(List transitionElements,
Node node)
public Transition resolveTransitionDestination(org.dom4j.Element transitionElement,
Node node)
org.jbpm.graph.def.Transition object (useful, if you want
to override this method to read additional configuration properties)
public void addUnresolvedActionReference(org.dom4j.Element actionElement,
Action action)
public void resolveActionReferences()
public void verifySwimlaneAssignments()
public Delegation createMailDelegation(String template,
String actors,
String to,
String subject,
String text)
readMailDelegation(Element) instead
public Delegation readMailDelegation(org.dom4j.Element element)
public String getProperty(String property,
org.dom4j.Element element)
public String writeElementContent(org.dom4j.Element element)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||