org.kuali.rice.kew.engine
Class CompatUtils
java.lang.Object
org.kuali.rice.kew.engine.CompatUtils
public class CompatUtils
- extends Object
Provides utility methods for handling backwards compatibility between KEW releases.
Currently, it's primary function is to handle backward compatability between the
deprecated "route level" concept and the "node" concept which was introduced in
KEW 2.1.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
helper
private static RouteHelper helper
CompatUtils
public CompatUtils()
getLevelForNode
public static Integer getLevelForNode(DocumentType documentType,
String nodeName)
getLevelForNode
private static Integer getLevelForNode(RouteNode node,
String nodeName,
Integer currentLevel)
getNodeForLevel
public static RouteNode getNodeForLevel(DocumentType documentType,
Integer routeLevel)
- Returns the RouteNode at the given numerical route level for the given document type.
This currently throws a WorkflowException if the document has parallel routing structures
because the route level as a number becomes arbitrary in that case.
getNodeForLevel
private static Object[] getNodeForLevel(RouteNode node,
Integer routeLevel,
Integer currentLevel)
isRouteLevelCompatible
public static boolean isRouteLevelCompatible(DocumentType documentType)
isRouteLevelCompatible
public static boolean isRouteLevelCompatible(DocumentRouteHeaderValue document)
isNodalDocument
public static boolean isNodalDocument(DocumentRouteHeaderValue document)
isNodalRequest
public static boolean isNodalRequest(ActionRequestValue request)
isRouteLevelDocument
public static boolean isRouteLevelDocument(DocumentRouteHeaderValue document)
isRouteLevelRequest
public static boolean isRouteLevelRequest(ActionRequestValue request)
getRouteLevelCompatibleNodeList
public static List getRouteLevelCompatibleNodeList(DocumentType documentType)
- Returns a list of RouteNodes in a flat list which is equivalent to the route level concept of
Workflow <= version 2.0. If the document type is not route level compatible, then this method will throw an error.
getMaxRouteLevel
public static int getMaxRouteLevel(DocumentType documentType)
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.