|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.engine.node.RouteNodeUtils
public class RouteNodeUtils
A simple class for performing operations on RouteNode. In particular, this class provides some convenience methods for processing custom RouteNode XML content fragments.
Nested Class Summary | |
---|---|
private static class |
RouteNodeUtils.RouteNodeSorter
Sorts by RouteNodeId or the order the nodes will be evaluated in *roughly*. |
Constructor Summary | |
---|---|
RouteNodeUtils()
|
Method Summary | |
---|---|
static RouteNodeInstance |
findRouteNodeInstanceById(Long nodeInstanceId,
DocumentRouteHeaderValue document)
|
private static void |
flattenNodeGraph(Map<String,RouteNode> nodes,
RouteNode node)
Recursively walks the node graph and builds up the map. |
private static void |
flattenNodeInstanceGraph(List<RouteNodeInstance> nodeInstances,
Set<Long> visitedNodeInstanceIds,
RouteNodeInstance nodeInstance,
boolean includeProcesses)
|
static List<RouteNodeInstance> |
getActiveNodeInstances(DocumentRouteHeaderValue document)
|
static List<RouteNodeInstance> |
getFlattenedNodeInstances(DocumentRouteHeaderValue document,
boolean includeProcesses)
|
static List<RouteNode> |
getFlattenedNodes(DocumentType documentType,
boolean climbHierarchy)
|
static List<RouteNode> |
getFlattenedNodes(Process process)
|
static String |
getValueOfCustomProperty(RouteNode routeNode,
String propertyName)
Searches a RouteNode's "contentFragment" (it's XML definition) for an XML element with the given name and returns it's value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RouteNodeUtils()
Method Detail |
---|
public static String getValueOfCustomProperty(RouteNode routeNode, String propertyName)
For example, in a node with the following definition:
... propertyValue
An invocation of getValueOfCustomProperty(routeNode, "myCustomProperty") would return "propertyValue".
routeNode
- RouteNode to examinepropertyName
- name of the XML element to search for
public static List<RouteNodeInstance> getFlattenedNodeInstances(DocumentRouteHeaderValue document, boolean includeProcesses)
private static void flattenNodeInstanceGraph(List<RouteNodeInstance> nodeInstances, Set<Long> visitedNodeInstanceIds, RouteNodeInstance nodeInstance, boolean includeProcesses)
public static List<RouteNode> getFlattenedNodes(DocumentType documentType, boolean climbHierarchy)
public static List<RouteNode> getFlattenedNodes(Process process)
private static void flattenNodeGraph(Map<String,RouteNode> nodes, RouteNode node)
nodes
- mapnode
- graphpublic static List<RouteNodeInstance> getActiveNodeInstances(DocumentRouteHeaderValue document)
public static RouteNodeInstance findRouteNodeInstanceById(Long nodeInstanceId, DocumentRouteHeaderValue document)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |