|
||||||||||
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 final 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.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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<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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |