org.kuali.rice.kew.engine.simulation
Class SimulationEngine

java.lang.Object
  extended by org.kuali.rice.kew.engine.StandardWorkflowEngine
      extended by org.kuali.rice.kew.engine.simulation.SimulationEngine
All Implemented Interfaces:
SimulationWorkflowEngine, WorkflowEngine

public class SimulationEngine
extends StandardWorkflowEngine
implements SimulationWorkflowEngine

A WorkflowEngine implementation which runs simulations. This object is not thread-safe and therefore a new instance needs to be instantiated on every use.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
 
Fields inherited from class org.kuali.rice.kew.engine.StandardWorkflowEngine
config, helper, parameterService, routeHeaderService, routeNodeService
 
Constructor Summary
SimulationEngine()
           
SimulationEngine(RouteNodeService routeNodeService, RouteHeaderService routeHeaderService, ParameterService parameterService, OrchestrationConfig config)
           
 
Method Summary
 void process(String documentId, String nodeInstanceId)
           
 SimulationResults runSimulation(SimulationCriteria criteria)
           
protected  void saveNode(RouteContext context, RouteNodeInstance nodeInstance)
          Executes a "saveNode" for the simulation engine, this does not actually save the document, but rather assigns it some simulation ids.
 
Methods inherited from class org.kuali.rice.kew.engine.StandardWorkflowEngine
getParameterService, getRouteHeaderService, getRouteNodeService, initializeDocument, isRunPostProcessorLogic, lockAdditionalDocuments, nodePostProcess, processNodeInstance, setParameterService, setRouteHeaderService, setRouteNodeService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kew.engine.WorkflowEngine
initializeDocument
 

Constructor Detail

SimulationEngine

public SimulationEngine()

SimulationEngine

public SimulationEngine(RouteNodeService routeNodeService,
                        RouteHeaderService routeHeaderService,
                        ParameterService parameterService,
                        OrchestrationConfig config)
Method Detail

runSimulation

public SimulationResults runSimulation(SimulationCriteria criteria)
                                throws Exception
Specified by:
runSimulation in interface SimulationWorkflowEngine
Throws:
Exception

process

public void process(String documentId,
                    String nodeInstanceId)
             throws InvalidActionTakenException,
                    DocumentSimulatedRouteException
Specified by:
process in interface WorkflowEngine
Overrides:
process in class StandardWorkflowEngine
Throws:
InvalidActionTakenException
DocumentSimulatedRouteException

saveNode

protected void saveNode(RouteContext context,
                        RouteNodeInstance nodeInstance)
Executes a "saveNode" for the simulation engine, this does not actually save the document, but rather assigns it some simulation ids. Resolves KULRICE-368

Overrides:
saveNode in class StandardWorkflowEngine


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.