org.kuali.rice.kew.engine
Class StandardWorkflowEngine

java.lang.Object
  extended by org.kuali.rice.kew.engine.StandardWorkflowEngine
All Implemented Interfaces:
WorkflowEngine
Direct Known Subclasses:
BlanketApproveEngine, SimulationEngine

public class StandardWorkflowEngine
extends Object
implements WorkflowEngine

The standard and supported implementation of the WorkflowEngine. Runs a processing loop against a given Document, processing nodes on the document until the document is completed or a node halts the processing.

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

Field Summary
protected  OrchestrationConfig config
           
protected  RouteHelper helper
           
protected  ParameterService parameterService
           
protected  RouteHeaderService routeHeaderService
           
protected  RouteNodeService routeNodeService
           
 
Constructor Summary
  StandardWorkflowEngine()
           
protected StandardWorkflowEngine(RouteNodeService routeNodeService, RouteHeaderService routeHeaderService, ParameterService parameterService, OrchestrationConfig config)
           
 
Method Summary
protected  ParameterService getParameterService()
           
protected  RouteHeaderService getRouteHeaderService()
           
protected  RouteNodeService getRouteNodeService()
           
 void initializeDocument(DocumentRouteHeaderValue document)
          This method initializes the document by materializing and activating the first node instance on the document.
 boolean isRunPostProcessorLogic()
           
protected  void lockAdditionalDocuments(DocumentRouteHeaderValue document)
           
protected  DocumentRouteHeaderValue nodePostProcess(RouteContext context)
           
 void process(String documentId, String nodeInstanceId)
           
protected  ProcessContext processNodeInstance(RouteContext context, RouteHelper helper)
           
protected  void saveNode(RouteContext context, RouteNodeInstance nodeInstance)
           
 void setParameterService(ParameterService parameterService)
           
 void setRouteHeaderService(RouteHeaderService routeHeaderService)
           
 void setRouteNodeService(RouteNodeService routeNodeService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

helper

protected final RouteHelper helper

routeNodeService

protected RouteNodeService routeNodeService

routeHeaderService

protected RouteHeaderService routeHeaderService

parameterService

protected ParameterService parameterService

config

protected OrchestrationConfig config
Constructor Detail

StandardWorkflowEngine

public StandardWorkflowEngine()

StandardWorkflowEngine

protected StandardWorkflowEngine(RouteNodeService routeNodeService,
                                 RouteHeaderService routeHeaderService,
                                 ParameterService parameterService,
                                 OrchestrationConfig config)
Method Detail

isRunPostProcessorLogic

public boolean isRunPostProcessorLogic()

process

public void process(String documentId,
                    String nodeInstanceId)
             throws Exception
Specified by:
process in interface WorkflowEngine
Throws:
Exception

processNodeInstance

protected ProcessContext processNodeInstance(RouteContext context,
                                             RouteHelper helper)
                                      throws Exception
Throws:
Exception

saveNode

protected void saveNode(RouteContext context,
                        RouteNodeInstance nodeInstance)

nodePostProcess

protected DocumentRouteHeaderValue nodePostProcess(RouteContext context)
                                            throws InvalidActionTakenException
Throws:
InvalidActionTakenException

lockAdditionalDocuments

protected void lockAdditionalDocuments(DocumentRouteHeaderValue document)
                                throws Exception
Throws:
Exception

initializeDocument

public void initializeDocument(DocumentRouteHeaderValue document)
This method initializes the document by materializing and activating the first node instance on the document.

Specified by:
initializeDocument in interface WorkflowEngine

getRouteNodeService

protected RouteNodeService getRouteNodeService()

getRouteHeaderService

protected RouteHeaderService getRouteHeaderService()

getParameterService

protected ParameterService getParameterService()

setRouteNodeService

public void setRouteNodeService(RouteNodeService routeNodeService)

setRouteHeaderService

public void setRouteHeaderService(RouteHeaderService routeHeaderService)

setParameterService

public void setParameterService(ParameterService parameterService)


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