Class TransitionEngine
java.lang.Object
org.kuali.rice.kew.engine.transition.TransitionEngine
- Direct Known Subclasses:
DynamicTransitionEngine,JoinTransitionEngine,SimpleTransitionEngine,SplitTransitionEngine,SubProcessTransitionEngine
Common superclass for all Transition Engines. A TransitionEngine handles transitioning into and out of
a
RouteNodeInstance. The TransitionEngine is also responsible for determining if a Node has completed.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Nodeprotected RouteHelperabstract ProcessResultisComplete(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 voidsetRouteHelper(RouteHelper helper) transitionFrom(RouteContext context, ProcessResult processResult) transitionTo(RouteNodeInstance nextNodeInstance, RouteContext context)
-
Constructor Details
-
TransitionEngine
public TransitionEngine()
-
-
Method Details
-
transitionTo
public RouteNodeInstance transitionTo(RouteNodeInstance nextNodeInstance, RouteContext context) throws Exception - Throws:
Exception
-
isComplete
Tell the WorkflowEngine processing the activeNodeInstance if the node is complete and transitionFrom can be called.- Parameters:
context- for routing- Returns:
- boolean
- Throws:
Exception
-
transitionFrom
public Transition transitionFrom(RouteContext context, ProcessResult processResult) throws Exception - Throws:
Exception
-
setRouteHelper
-
getRouteHelper
-
getNode
- Throws:
Exception
-
resolveNextNodeInstances
protected List<RouteNodeInstance> resolveNextNodeInstances(RouteNodeInstance nodeInstance, List<RouteNode> nextRouteNodes) Determines the next nodes instances for the transition. If the node instance already has next nodes instances (i.e. a dynamic node), then those will be returned. Otherwise it will resolve the next nodes from the RouteNode prototype.- Parameters:
nodeInstance- for the transitionnextRouteNodes- list of route notes- Returns:
- list of route note instances
-
resolveNextNodeInstances
-