Package org.kuali.rice.kew.engine
Class CompatUtils
java.lang.Object
org.kuali.rice.kew.engine.CompatUtils
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)
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntegergetLevelForNode(DocumentType documentType, String nodeName) static intgetMaxRouteLevel(DocumentType documentType) static RouteNodegetNodeForLevel(DocumentType documentType, Integer routeLevel) Returns the RouteNode at the given numerical route level for the given document type.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.static booleanisNodalDocument(DocumentRouteHeaderValue document) static booleanisNodalRequest(ActionRequestValue request) static booleanisRouteLevelCompatible(DocumentType documentType) static booleanstatic booleanisRouteLevelDocument(DocumentRouteHeaderValue document) static booleanisRouteLevelRequest(ActionRequestValue request)
-
Method Details
-
getLevelForNode
-
getNodeForLevel
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. -
isRouteLevelCompatible
-
isRouteLevelCompatible
-
isNodalDocument
-
isNodalRequest
-
isRouteLevelDocument
-
isRouteLevelRequest
-
getRouteLevelCompatibleNodeList
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
-