public abstract class TransitionEngine extends Object
RouteNodeInstance
. The TransitionEngine is also responsible for determining if a Node has completed.Constructor and Description |
---|
TransitionEngine() |
Modifier and Type | Method and Description |
---|---|
protected Node |
getNode(RouteNode routeNode,
Class nodeClass) |
protected RouteHelper |
getRouteHelper() |
abstract ProcessResult |
isComplete(RouteContext context)
Tell the WorkflowEngine processing the activeNodeInstance if the node is complete and transitionFrom can
be called.
|
protected List<RouteNodeInstance> |
resolveNextNodeInstances(RouteNodeInstance nodeInstance) |
protected List<RouteNodeInstance> |
resolveNextNodeInstances(RouteNodeInstance nodeInstance,
List<RouteNode> nextRouteNodes)
Determines the next nodes instances for the transition.
|
protected void |
setRouteHelper(RouteHelper helper) |
Transition |
transitionFrom(RouteContext context,
ProcessResult processResult) |
RouteNodeInstance |
transitionTo(RouteNodeInstance nextNodeInstance,
RouteContext context) |
public TransitionEngine()
public RouteNodeInstance transitionTo(RouteNodeInstance nextNodeInstance, RouteContext context) throws Exception
Exception
public abstract ProcessResult isComplete(RouteContext context) throws Exception
context
- for routingException
public Transition transitionFrom(RouteContext context, ProcessResult processResult) throws Exception
Exception
protected void setRouteHelper(RouteHelper helper)
protected RouteHelper getRouteHelper()
protected Node getNode(RouteNode routeNode, Class nodeClass) throws Exception
Exception
protected List<RouteNodeInstance> resolveNextNodeInstances(RouteNodeInstance nodeInstance, List<RouteNode> nextRouteNodes)
nodeInstance
- for the transitionnextRouteNodes
- list of route notesprotected List<RouteNodeInstance> resolveNextNodeInstances(RouteNodeInstance nodeInstance)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.