org.jbpm.sim.jpdl
Class SimulationJpdlXmlReader
java.lang.Object
org.jbpm.jpdl.xml.JpdlXmlReader
org.jbpm.sim.jpdl.SimulationJpdlXmlReader
- All Implemented Interfaces:
- java.io.Serializable, ProblemListener
public class SimulationJpdlXmlReader
- extends JpdlXmlReader
The SimulationJpdXmlReader is used instead of the original
org.jbpm.jpdl.xml.JpdlXmlReader
from jBPM when using jBPM as simulation engine.
This reader instruments the process with additional things needed for simulation
- Author:
- bernd.ruecker@camunda.com
- See Also:
- Serialized Form
| Methods inherited from class org.jbpm.jpdl.xml.JpdlXmlReader |
addAction, addError, addError, addProblem, addUnresolvedActionReference, addUnresolvedTransitionDestination, addWarning, close, createAction, createMailDelegation, getProcessDefinition, getProperty, parseProcessDefinitionAttributes, readAction, readActions, readAssignmentDelegation, readEvents, readExceptionHandler, readExceptionHandlers, readNodes, readNodeTimer, readNodeTimers, readSingleAction, readStartStateTask, readSwimlanes, readTaskController, readTasks, readTaskTimer, readTaskTimers, readVariableAccesses, resolveActionReferences, resolveTransitionDestinations, resolveTransitionDestinations, verifySwimlaneAssignments |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimulationJpdlXmlReader
public SimulationJpdlXmlReader(java.lang.String processXml)
SimulationJpdlXmlReader
public SimulationJpdlXmlReader(org.xml.sax.InputSource inputSource)
SimulationJpdlXmlReader
public SimulationJpdlXmlReader(java.io.Reader reader)
SimulationJpdlXmlReader
public SimulationJpdlXmlReader(org.xml.sax.InputSource inputSource,
ProblemListener problemListener)
readProcessDefinition
public ProcessDefinition readProcessDefinition()
- Overrides:
readProcessDefinition in class JpdlXmlReader
instrument
public void instrument()
- during instrumentation, you can:
1) extract extra simulation information from the process xml and
store it in the simulation definition
2) add event listeners to the process elements in processDefinition
3) modify the whole processDefinition as you want
readTask
public Task readTask(org.dom4j.Element taskElement,
TaskMgmtDefinition taskMgmtDefinition,
TaskNode taskNode)
- Overrides:
readTask in class JpdlXmlReader
readNode
public void readNode(org.dom4j.Element nodeElement,
Node node,
NodeCollection nodeCollection)
- Overrides:
readNode in class JpdlXmlReader
resolveTransitionDestination
public Transition resolveTransitionDestination(org.dom4j.Element transitionElement,
Node node)
- Overrides:
resolveTransitionDestination in class JpdlXmlReader
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.