Class RouteNodeServiceImpl
java.lang.Object
org.kuali.rice.kew.engine.node.service.impl.RouteNodeServiceImpl
- All Implemented Interfaces:
RouteNodeService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.logging.log4j.Loggerstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByRouteNodeInstance(RouteNodeInstance routeNodeInstance) voiddeleteNodeStateById(Long nodeStateId) voiddeleteNodeStates(List statesToBeDeleted) findFinalApprovalRouteNodes(String documentTypeId) findFutureNodeNames(String documentId) Returns a List of the distinct node names through which this document might pass in it's future routing.findNextRouteNodesInPath(RouteNodeInstance nodeInstance, String nodeName) findNodeState(Long nodeInstanceId, String key) findPreviousNodeNames(String documentId) findRouteNodeById(String nodeId) findRouteNodeByName(String documentTypeId, String name) findRouteNodeInstanceById(String nodeInstanceId) findRouteNodeInstances(String documentId) getActiveNodeInstances(String documentId) Retrieves the active node instances of the given Document.getActiveNodeInstances(DocumentRouteHeaderValue document, String nodeName) Returns a list of active node instances associated with the document that are activegetActiveRouteNodeNames(String documentId) Retrieves the names of active node instances for the document with the given id.getActiveSimpleRouteNodeNames(String documentId) Retrieves the names of active node instances for simple nodes for the document with the given id.getCurrentNodeInstances(String documentId) Returns the node instances representing the most recent node instances in the document.getCurrentRouteNodeNames(String documentId) Retrieves the names of the route node instances where the document is currently located for the document with the given id.getCurrentSimpleRouteNodeNames(String documentId) Retrieves the names of the simple route node instances where the document is currently located for the document with the given id.org.kuali.rice.krad.data.DataObjectServicegetFlattenedNodeInstances(DocumentRouteHeaderValue document, boolean includeProcesses) Returns a flattened list of RouteNodeInstances on the given document.getFlattenedNodes(DocumentType documentType, boolean climbHierarchy) Flatten all the document types route nodes into a single List.getFlattenedNodes(ProcessDefinitionBo process) getInitialNodeInstances(String documentId) Retrieves the initial node instances of the given document.Queries the list of revoked node instances from the root BranchState of the Document and returns a List of revoked RouteNodeInstances.getTerminalNodeInstances(String documentId) Retrieves the terminal node instances of the given Document.getTerminalRouteNodeNames(String documentId) Retrieves the names of terminal node instances for the document with the given id.booleanisNodeInPath(DocumentRouteHeaderValue document, String nodeName) voidrevokeNodeInstance(DocumentRouteHeaderValue document, RouteNodeInstance nodeInstance) Records the revocation in the root BranchState of the document.voidsave(RouteNodeInstance nodeInstance) searchNodeGraph(NodeGraphSearchCriteria criteria) voidsetDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService) void
-
Field Details
-
LOG
protected final org.apache.logging.log4j.Logger LOG -
REVOKED_NODE_INSTANCES_STATE_KEY
- See Also:
-
-
Constructor Details
-
RouteNodeServiceImpl
public RouteNodeServiceImpl()
-
-
Method Details
-
save
- Specified by:
savein interfaceRouteNodeService
-
save
- Specified by:
savein interfaceRouteNodeService
-
save
- Specified by:
savein interfaceRouteNodeService
-
save
- Specified by:
savein interfaceRouteNodeService
-
findRouteNodeById
- Specified by:
findRouteNodeByIdin interfaceRouteNodeService
-
findRouteNodeInstanceById
- Specified by:
findRouteNodeInstanceByIdin interfaceRouteNodeService
-
getCurrentNodeInstances
Description copied from interface:RouteNodeServiceReturns the node instances representing the most recent node instances in the document. The algorithm for locating the current nodes is as follows: If the document has active node instances, return those, otherwise return it's terminal node instances.- Specified by:
getCurrentNodeInstancesin interfaceRouteNodeService
-
getActiveNodeInstances
Description copied from interface:RouteNodeServiceRetrieves the active node instances of the given Document. The active node instances represent where in the route path the document is currently located.- Specified by:
getActiveNodeInstancesin interfaceRouteNodeService- Parameters:
documentId- of the document- Returns:
- list of route node instances
-
getActiveNodeInstances
- Specified by:
getActiveNodeInstancesin interfaceRouteNodeService
-
getCurrentRouteNodeNames
Description copied from interface:RouteNodeServiceRetrieves the names of the route node instances where the document is currently located for the document with the given id. This could be active nodes in the document if it is in the middle of the routing process or it could be the names of the terminal nodes if the document has completed routing.- Specified by:
getCurrentRouteNodeNamesin interfaceRouteNodeService- Parameters:
documentId- of the document- Returns:
- list of names of the current route node instances
-
getCurrentSimpleRouteNodeNames
Description copied from interface:RouteNodeServiceRetrieves the names of the simple route node instances where the document is currently located for the document with the given id. This could be active nodes in the document if it is in the middle of the routing process or it could be the names of the terminal nodes if the document has completed routing.- Specified by:
getCurrentSimpleRouteNodeNamesin interfaceRouteNodeService- Parameters:
documentId- of the document- Returns:
- list of names of the current simple route node instances
-
getActiveRouteNodeNames
Description copied from interface:RouteNodeServiceRetrieves the names of active node instances for the document with the given id. The active node instances represent where in the route path the document is currently located.- Specified by:
getActiveRouteNodeNamesin interfaceRouteNodeService- Parameters:
documentId- of the document- Returns:
- list of names of route node instances
-
getActiveSimpleRouteNodeNames
Description copied from interface:RouteNodeServiceRetrieves the names of active node instances for simple nodes for the document with the given id. The active node instances represent where in the route path the document is currently located, and simple nodes are only those nodes whose type extend fromSimpleNode.- Specified by:
getActiveSimpleRouteNodeNamesin interfaceRouteNodeService- Parameters:
documentId- of the document- Returns:
- list of names of the active simple route node instances
-
getTerminalNodeInstances
Description copied from interface:RouteNodeServiceRetrieves the terminal node instances of the given Document. The terminal node instances are nodes in the route path which are both inactive and complete and have no next nodes in their path. Terminal node instances will typically only exist on documents which are no longer Enroute.- Specified by:
getTerminalNodeInstancesin interfaceRouteNodeService- Parameters:
documentId- for the given Document- Returns:
- list of terminal node instances
-
getTerminalRouteNodeNames
Description copied from interface:RouteNodeServiceRetrieves the names of terminal node instances for the document with the given id. The terminal node instances are nodes in the route path which are both inactive and complete and have no next nodes in their path. Terminal node instances will typically only exist on documents which are no longer enroute.- Specified by:
getTerminalRouteNodeNamesin interfaceRouteNodeService- Parameters:
documentId- for the given Document- Returns:
- list of terminal node instances
-
getInitialNodeInstances
Description copied from interface:RouteNodeServiceRetrieves the initial node instances of the given document. The initial node instances are those node instances which are at the very beginning of the route. Usually, this will just be a single node instance.- Specified by:
getInitialNodeInstancesin interfaceRouteNodeService
-
findNodeState
- Specified by:
findNodeStatein interfaceRouteNodeService
-
findRouteNodeByName
- Specified by:
findRouteNodeByNamein interfaceRouteNodeService
-
findFinalApprovalRouteNodes
- Specified by:
findFinalApprovalRouteNodesin interfaceRouteNodeService
-
findNextRouteNodesInPath
- Specified by:
findNextRouteNodesInPathin interfaceRouteNodeService
-
isNodeInPath
- Specified by:
isNodeInPathin interfaceRouteNodeService
-
findRouteNodeInstances
- Specified by:
findRouteNodeInstancesin interfaceRouteNodeService
-
setRouteNodeDAO
-
findProcessNodeInstances
- Specified by:
findProcessNodeInstancesin interfaceRouteNodeService
-
findPreviousNodeNames
- Specified by:
findPreviousNodeNamesin interfaceRouteNodeService
-
findFutureNodeNames
Description copied from interface:RouteNodeServiceReturns a List of the distinct node names through which this document might pass in it's future routing. In certain cases this will be an approximation based on what the system knows at the time of execution.- Specified by:
findFutureNodeNamesin interfaceRouteNodeService
-
getFlattenedNodes
Description copied from interface:RouteNodeServiceFlatten all the document types route nodes into a single List. This includes all processes on the DocumentType.- Specified by:
getFlattenedNodesin interfaceRouteNodeService- Parameters:
documentType- DocumentType who's nodes will be flattened.climbHierarchy- whether to include the parents nodes if the passed in DocumentType contains no nodes- Returns:
- List or empty List
-
getFlattenedNodes
- Specified by:
getFlattenedNodesin interfaceRouteNodeService
-
getFlattenedNodeInstances
public List<RouteNodeInstance> getFlattenedNodeInstances(DocumentRouteHeaderValue document, boolean includeProcesses) Description copied from interface:RouteNodeServiceReturns a flattened list of RouteNodeInstances on the given document. If the includeProcesses flag is true than this method includes process RouteNodeInstances, otherwise they are excluded. which are processes.- Specified by:
getFlattenedNodeInstancesin interfaceRouteNodeService- Parameters:
document- route header valueincludeProcesses- flag- Returns:
- list of routeNodeInstances
-
searchNodeGraph
- Specified by:
searchNodeGraphin interfaceRouteNodeService
-
getActiveNodeInstances
public List<RouteNodeInstance> getActiveNodeInstances(DocumentRouteHeaderValue document, String nodeName) Description copied from interface:RouteNodeServiceReturns a list of active node instances associated with the document that are active- Specified by:
getActiveNodeInstancesin interfaceRouteNodeService- Parameters:
document-nodeName-- Returns:
-
deleteByRouteNodeInstance
- Specified by:
deleteByRouteNodeInstancein interfaceRouteNodeService
-
deleteNodeStateById
- Specified by:
deleteNodeStateByIdin interfaceRouteNodeService
-
deleteNodeStates
- Specified by:
deleteNodeStatesin interfaceRouteNodeService
-
revokeNodeInstance
Records the revocation in the root BranchState of the document.- Specified by:
revokeNodeInstancein interfaceRouteNodeService
-
getRevokedNodeInstances
Queries the list of revoked node instances from the root BranchState of the Document and returns a List of revoked RouteNodeInstances.- Specified by:
getRevokedNodeInstancesin interfaceRouteNodeService- See Also:
-
getDataObjectService
public org.kuali.rice.krad.data.DataObjectService getDataObjectService() -
setDataObjectService
public void setDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService)
-