Package org.kuali.rice.kew.engine
Class StandardWorkflowEngine
java.lang.Object
org.kuali.rice.kew.engine.StandardWorkflowEngine
- All Implemented Interfaces:
WorkflowEngine
- Direct Known Subclasses:
BlanketApproveEngine,SimulationEngine
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
FieldsModifier and TypeFieldDescriptionprotected OrchestrationConfigprotected final RouteHelperprotected ParameterServiceprotected RouteHeaderServiceprotected RouteNodeService -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStandardWorkflowEngine(RouteNodeService routeNodeService, RouteHeaderService routeHeaderService, ParameterService parameterService, OrchestrationConfig config) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidflushDatabaseWork(RouteContext context) Flush using DocumentRouteHeaderValue to identify the context in which to flush database changes.protected ParameterServiceprotected RouteHeaderServiceprotected RouteNodeServicevoidinitializeDocument(DocumentRouteHeaderValue document) This method initializes the document by materializing and activating the first node instance on the document.booleanprotected voidprotected DocumentRouteHeaderValuenodePostProcess(RouteContext context) voidprotected ProcessContextprocessNodeInstance(RouteContext context, RouteHelper helper) protected RouteNodeInstancesaveNode(RouteContext context, RouteNodeInstance nodeInstance) voidsetParameterService(ParameterService parameterService) voidsetRouteHeaderService(RouteHeaderService routeHeaderService) voidsetRouteNodeService(RouteNodeService routeNodeService)
-
Field Details
-
helper
-
routeNodeService
-
routeHeaderService
-
parameterService
-
config
-
-
Constructor Details
-
StandardWorkflowEngine
public StandardWorkflowEngine() -
StandardWorkflowEngine
protected StandardWorkflowEngine(RouteNodeService routeNodeService, RouteHeaderService routeHeaderService, ParameterService parameterService, OrchestrationConfig config)
-
-
Method Details
-
isRunPostProcessorLogic
public boolean isRunPostProcessorLogic() -
process
- Specified by:
processin interfaceWorkflowEngine- Throws:
Exception
-
processNodeInstance
protected ProcessContext processNodeInstance(RouteContext context, RouteHelper helper) throws Exception - Throws:
Exception
-
saveNode
-
flushDatabaseWork
Flush using DocumentRouteHeaderValue to identify the context in which to flush database changes. -
nodePostProcess
protected DocumentRouteHeaderValue nodePostProcess(RouteContext context) throws InvalidActionTakenException - Throws:
InvalidActionTakenException
-
lockAdditionalDocuments
- Throws:
Exception
-
initializeDocument
This method initializes the document by materializing and activating the first node instance on the document.- Specified by:
initializeDocumentin interfaceWorkflowEngine
-
getRouteNodeService
-
getRouteHeaderService
-
getParameterService
-
setRouteNodeService
-
setRouteHeaderService
-
setParameterService
-