Package org.kuali.rice.kew.engine.node
Class RouteNodeUtils
java.lang.Object
org.kuali.rice.kew.engine.node.RouteNodeUtils
A simple class for performing operations on RouteNode. In particular, this class provides some
convenience methods for processing custom RouteNode XML content fragments.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<RouteNodeInstance> static ElementgetCustomRouteNodeElement(RouteNode routeNode, String elementName) getCustomRouteNodeElements(RouteNode routeNode, String elementName) static List<RouteNodeInstance> getFlattenedNodeInstances(DocumentRouteHeaderValue document, boolean includeProcesses) getFlattenedNodes(DocumentType documentType, boolean climbHierarchy) getFlattenedNodes(ProcessDefinitionBo process) static StringgetValueOfCustomProperty(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.
-
Method Details
-
getValueOfCustomProperty
Searches a RouteNode's "contentFragment" (it's XML definition) for an XML element with the given name and returns it's value.For example, in a node with the following definition:
<routeNode name="..."> ... <myCustomProperty>propertyValue</myCustomProperty> </routeNode>
An invocation of getValueOfCustomProperty(routeNode, "myCustomProperty") would return "propertyValue".
- Parameters:
routeNode- RouteNode to examinepropertyName- name of the XML element to search for- Returns:
- the value of the XML element, or null if it could not be located
-
getCustomRouteNodeElements
-
getCustomRouteNodeElement
-
getFlattenedNodeInstances
public static List<RouteNodeInstance> getFlattenedNodeInstances(DocumentRouteHeaderValue document, boolean includeProcesses) -
getFlattenedNodes
-
getFlattenedNodes
-
getActiveNodeInstances
-