org.jbpm.sim.jpdl
Class SimulationJpdlXmlReader

java.lang.Object
  extended by org.jbpm.jpdl.xml.JpdlXmlReader
      extended by 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

Field Summary
 
Fields inherited from class org.jbpm.jpdl.xml.JpdlXmlReader
document, initialNodeName, inputSource, problemListener, problems, processDefinition, unresolvedActionReferences, unresolvedTransitionDestinations
 
Constructor Summary
SimulationJpdlXmlReader(org.xml.sax.InputSource inputSource)
           
SimulationJpdlXmlReader(org.xml.sax.InputSource inputSource, ProblemListener problemListener)
           
SimulationJpdlXmlReader(java.io.Reader reader)
           
SimulationJpdlXmlReader(java.lang.String processXml)
           
 
Method Summary
 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
 void readNode(org.dom4j.Element nodeElement, Node node, NodeCollection nodeCollection)
           
 ProcessDefinition readProcessDefinition()
           
 Task readTask(org.dom4j.Element taskElement, TaskMgmtDefinition taskMgmtDefinition, TaskNode taskNode)
           
 Transition resolveTransitionDestination(org.dom4j.Element transitionElement, Node node)
           
 
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
 

Constructor Detail

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)
Method Detail

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.