public class HierarchyRoutingNode extends Object implements DynamicNode
Modifier and Type | Field and Description |
---|---|
static String |
HIERARCHY_PROVIDER
The RouteNode configuration parameter that specifies the hierarchy provider implementation
|
protected static String |
JOIN_PROCESS_NAME |
protected org.apache.log4j.Logger |
LOG |
protected static String |
NO_STOP_NAME |
protected static String |
REQUEST_PROCESS_NAME |
protected static String |
SPLIT_PROCESS_NAME |
static String |
STOP_ID
RouteNodeInstance NodeState key for id of stop
|
Constructor and Description |
---|
HierarchyRoutingNode() |
Modifier and Type | Method and Description |
---|---|
protected HierarchyProvider |
getHierarchyProvider(RouteNodeInstance nodeInstance,
RouteContext context)
Loads hierarchy provider class via the GlobalResourceLoader
|
protected ProcessDefinitionBo |
getPrototypeProcess(RouteNode node,
DocumentType documentType)
Places a ProcessDefinition on the documentType wrapping the node and setting the node as the process's initalRouteNode
|
protected RouteNode |
getStopRequestNode(HierarchyProvider.Stop stop,
DocumentType documentType) |
protected boolean |
isDescendent(HierarchyProvider provider,
HierarchyProvider.Stop parent,
HierarchyProvider.Stop otherStop) |
DynamicResult |
transitioningInto(RouteContext context,
RouteNodeInstance dynamicNodeInstance,
RouteHelper helper)
Invoked when the engine first encounters this DynamicNode.
|
DynamicResult |
transitioningOutOf(RouteContext context,
RouteHelper helper)
Invoked everytime a node in the dynamic process completes.
|
protected final org.apache.log4j.Logger LOG
public static final String HIERARCHY_PROVIDER
public static final String STOP_ID
protected static final String SPLIT_PROCESS_NAME
protected static final String JOIN_PROCESS_NAME
protected static final String REQUEST_PROCESS_NAME
protected static final String NO_STOP_NAME
public HierarchyRoutingNode()
protected HierarchyProvider getHierarchyProvider(RouteNodeInstance nodeInstance, RouteContext context)
nodeInstance
- the current RouteNodeInstancecontext
- the current RouteContextpublic DynamicResult transitioningInto(RouteContext context, RouteNodeInstance dynamicNodeInstance, RouteHelper helper) throws Exception
DynamicNode
DynamicResult
containing
the first RouteNodeInstance
in the dynamic process.transitioningInto
in interface DynamicNode
Exception
public DynamicResult transitioningOutOf(RouteContext context, RouteHelper helper) throws Exception
DynamicNode
DynamicResult
with the
RouteNodeInstance
(or instances) of the next node in the dynamic graph. If this returns no next
node then the dynamic process will be considered completed.transitioningOutOf
in interface DynamicNode
Exception
protected boolean isDescendent(HierarchyProvider provider, HierarchyProvider.Stop parent, HierarchyProvider.Stop otherStop)
protected ProcessDefinitionBo getPrototypeProcess(RouteNode node, DocumentType documentType)
node
- documentType
- protected RouteNode getStopRequestNode(HierarchyProvider.Stop stop, DocumentType documentType)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.