public final class RouteNodeUtils extends Object
Modifier and Type | Method and Description |
---|---|
static RouteNodeInstance |
findRouteNodeInstanceById(String nodeInstanceId,
DocumentRouteHeaderValue document) |
static List<RouteNodeInstance> |
getActiveNodeInstances(DocumentRouteHeaderValue document) |
static Element |
getCustomRouteNodeElement(RouteNode routeNode,
String elementName) |
static List<Element> |
getCustomRouteNodeElements(RouteNode routeNode,
String elementName) |
static List<RouteNodeInstance> |
getFlattenedNodeInstances(DocumentRouteHeaderValue document,
boolean includeProcesses) |
static List<RouteNode> |
getFlattenedNodes(DocumentType documentType,
boolean climbHierarchy) |
static List<RouteNode> |
getFlattenedNodes(ProcessDefinitionBo 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.
|
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 forpublic static List<Element> getCustomRouteNodeElements(RouteNode routeNode, String elementName)
public static Element getCustomRouteNodeElement(RouteNode routeNode, String elementName)
public static List<RouteNodeInstance> getFlattenedNodeInstances(DocumentRouteHeaderValue document, boolean includeProcesses)
public static List<RouteNode> getFlattenedNodes(DocumentType documentType, boolean climbHierarchy)
public static List<RouteNode> getFlattenedNodes(ProcessDefinitionBo process)
public static List<RouteNodeInstance> getActiveNodeInstances(DocumentRouteHeaderValue document)
public static RouteNodeInstance findRouteNodeInstanceById(String nodeInstanceId, DocumentRouteHeaderValue document)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.