Interface WorkflowDocumentService
public interface WorkflowDocumentService
This interface defines the contract that must be implemented by the workflow engine.
-
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledge(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, String nodeName, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) voidacknowledge(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) acknowledge this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action taken, additionally optionally providing a list of ad hoc recipients for this document which should be restricted to actions requested of acknowledge or fyi as all other action request types will be discardedvoidapprove(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, String nodeName, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) voidapprove(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) approve this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action taken, and additionally optionally providing a list of ad hoc recipients for the documentvoidblanketApprove(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, String nodeName, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) voidblanketApprove(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) blanket approve this document optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action taken, and additionally optionally providing a list of ad hoc recipients for this document which should be restricted to actions requested of acknowledge or fyi as all other action request types will be discarded.voidcancel this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action takenvoidclearFyi(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String nodeName, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) voidclearFyi(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) clear the fyi request for this document, optinoally providing a list of ad hoc recipients for this document which should be restricted to actions requested of fyi as all other action request types will be discardedvoidcomplete(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, String nodeName, List adHocRecipients) voidcomplete(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, List adHocRecipients) Completes documentorg.kuali.rice.kew.api.WorkflowDocumentcreateWorkflowDocument(String documentTypeName, org.kuali.rice.kim.api.identity.Person workflowUser) Given a documentTypeName and workflowUser, returns a new workflowDocument from the workflow server.voiddisapprove(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation) disapprove this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action takengetCurrentRouteLevelName(org.kuali.rice.kew.api.WorkflowDocument workflowDocument) Gets the current route level name of the workflow document even if document has no active node names.getCurrentRouteNodeNames(org.kuali.rice.kew.api.WorkflowDocument workflowDocument) Returns the current node names of the document delimited by", "if there is more than one.org.kuali.rice.kew.api.WorkflowDocumentloadWorkflowDocument(String documentHeaderId, org.kuali.rice.kim.api.identity.Person workflowUser) Given a documentHeaderId and workflowUser, retrieves the workflowDocument associated with that documentHeaderId from the workflow server.voidrecall this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action takenvoidroute(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, String nodeName, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) voidroute(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) route this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action taken, and additionally optionally providing a list of ad hoc recipients for the documentvoidThis method will first determine if theWorkflowDocument.saveDocument(String)method is valid to be called.voidsaveRoutingData(org.kuali.rice.kew.api.WorkflowDocument workflowDocument) save the routing data of the document to workflowvoidsendWorkflowNotification(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, String nodeName, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) Sends workflow notification at the specified node to the list of ad hoc recipients.voidsendWorkflowNotification(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, String nodeName, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients, String notificationLabel) Sends workflow notification at the specified node to the list of ad hoc recipients.voidsendWorkflowNotification(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) Sends workflow notification to the list of ad hoc recipients.voidsendWorkflowNotification(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients, String notificationLabel) Sends workflow notification to the list of ad hoc recipients.voidsuperUserApprove(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation) super user approve this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action takenvoidsuperUserCancel(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation) super user cancel this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action takenvoidsuperUserDisapprove(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation) super user disapprove this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action takenbooleanworkflowDocumentExists(String documentHeaderId)
-
Method Details
-
workflowDocumentExists
- Parameters:
documentHeaderId-- Returns:
- true if a workflowDocument exists for the given documentHeaderId
-
createWorkflowDocument
org.kuali.rice.kew.api.WorkflowDocument createWorkflowDocument(String documentTypeName, org.kuali.rice.kim.api.identity.Person workflowUser) throws org.kuali.rice.kew.api.exception.WorkflowException Given a documentTypeName and workflowUser, returns a new workflowDocument from the workflow server.- Parameters:
documentTypeName-workflowUser-- Returns:
- newly-created workflowDocument instance
- Throws:
IllegalArgumentException- if the given documentTypeName is blankIllegalArgumentException- if the given workflowUser is null or contains no idorg.kuali.rice.kew.api.exception.ResourceUnavailableExceptionorg.kuali.rice.kew.api.exception.WorkflowException
-
loadWorkflowDocument
org.kuali.rice.kew.api.WorkflowDocument loadWorkflowDocument(String documentHeaderId, org.kuali.rice.kim.api.identity.Person workflowUser) throws org.kuali.rice.kew.api.exception.WorkflowException Given a documentHeaderId and workflowUser, retrieves the workflowDocument associated with that documentHeaderId from the workflow server.- Parameters:
documentHeaderId-workflowUser-- Returns:
- existing workflowDoc
- Throws:
IllegalArgumentException- if the given documentHeaderId is nullIllegalArgumentException- if the given workflowUser is null or contains no idorg.kuali.rice.kew.api.exception.WorkflowException
-
route
void route(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, String nodeName, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException - Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
save
void save(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation) throws org.kuali.rice.kew.api.exception.WorkflowException This method will first determine if theWorkflowDocument.saveDocument(String)method is valid to be called. If so the method will save the document to workflows action list optionally providing an annotation which will show up in the route log for this document corresponding to this action taken. If the WorkflowDocument.saveDocument() method is not valid to be called the system will instead call the methodsaveRoutingData(WorkflowDocument)- Parameters:
workflowDocument-annotation-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
saveRoutingData
void saveRoutingData(org.kuali.rice.kew.api.WorkflowDocument workflowDocument) throws org.kuali.rice.kew.api.exception.WorkflowException save the routing data of the document to workflow- Parameters:
workflowDocument-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
route
void route(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException route this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action taken, and additionally optionally providing a list of ad hoc recipients for the document- Parameters:
workflowDocument-annotation-adHocRecipients-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
acknowledge
void acknowledge(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, String nodeName, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException - Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
approve
void approve(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException approve this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action taken, and additionally optionally providing a list of ad hoc recipients for the document- Parameters:
workflowDocument-annotation-adHocRecipients-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
approve
void approve(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, String nodeName, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException - Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
superUserApprove
void superUserApprove(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation) throws org.kuali.rice.kew.api.exception.WorkflowException super user approve this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action taken- Parameters:
workflowDocument-annotation-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
superUserCancel
void superUserCancel(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation) throws org.kuali.rice.kew.api.exception.WorkflowException super user cancel this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action taken- Parameters:
workflowDocument-annotation-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
superUserDisapprove
void superUserDisapprove(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation) throws org.kuali.rice.kew.api.exception.WorkflowException super user disapprove this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action taken- Parameters:
workflowDocument-annotation-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
disapprove
void disapprove(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation) throws org.kuali.rice.kew.api.exception.WorkflowException disapprove this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action taken- Parameters:
workflowDocument-annotation-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
blanketApprove
void blanketApprove(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, String nodeName, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException - Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
cancel
void cancel(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation) throws org.kuali.rice.kew.api.exception.WorkflowException cancel this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action taken- Parameters:
workflowDocument-annotation-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
acknowledge
void acknowledge(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException acknowledge this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action taken, additionally optionally providing a list of ad hoc recipients for this document which should be restricted to actions requested of acknowledge or fyi as all other action request types will be discarded- Parameters:
workflowDocument-annotation-adHocRecipients-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
blanketApprove
void blanketApprove(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException blanket approve this document optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action taken, and additionally optionally providing a list of ad hoc recipients for this document which should be restricted to actions requested of acknowledge or fyi as all other action request types will be discarded.- Parameters:
workflowDocument-annotation-adHocRecipients-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
clearFyi
void clearFyi(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException clear the fyi request for this document, optinoally providing a list of ad hoc recipients for this document which should be restricted to actions requested of fyi as all other action request types will be discarded- Parameters:
workflowDocument-adHocRecipients-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
getCurrentRouteLevelName
String getCurrentRouteLevelName(org.kuali.rice.kew.api.WorkflowDocument workflowDocument) throws org.kuali.rice.kew.api.exception.WorkflowException Gets the current route level name of the workflow document even if document has no active node names. Allows for getting the node name of a document already in a final status.- Parameters:
workflowDocument-- Returns:
- node name of the current node if only one or list of node names separated by string ", " if more than one current node name
- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
sendWorkflowNotification
void sendWorkflowNotification(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients, String notificationLabel) throws org.kuali.rice.kew.api.exception.WorkflowException Sends workflow notification to the list of ad hoc recipients. This method is usually used to notify users of a note that has been added to a document. The notificationLabel parameter is used to give the request a custom label in the user's Action List- Parameters:
workflowDocument-annotation-adHocRecipients-notificationLabel-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
sendWorkflowNotification
void sendWorkflowNotification(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, String nodeName, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients, String notificationLabel) throws org.kuali.rice.kew.api.exception.WorkflowException Sends workflow notification at the specified node to the list of ad hoc recipients. This method is usually used to notify users of a note that has been added to a document. The notificationLabel parameter is used to give the request a custom label in the user's Action List- Parameters:
workflowDocument-annotation-nodeName-adHocRecipients-notificationLabel-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
clearFyi
void clearFyi(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String nodeName, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException - Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
sendWorkflowNotification
void sendWorkflowNotification(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException Sends workflow notification to the list of ad hoc recipients. This method is usually used to notify users of a note that has been added to a document- Parameters:
workflowDocument-annotation-adHocRecipients-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
sendWorkflowNotification
void sendWorkflowNotification(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, String nodeName, List<org.kuali.rice.krad.bo.AdHocRouteRecipient> adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException Sends workflow notification at the specified node to the list of ad hoc recipients. This method is usually used to notify users of a note that has been added to a document- Parameters:
workflowDocument-annotation-nodeName-adHocRecipients-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
getCurrentRouteNodeNames
Returns the current node names of the document delimited by", "if there is more than one. -
complete
void complete(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, List adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException Completes document- Parameters:
workflowDocument-annotation-adHocRecipients-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
recall
void recall(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, boolean cancel) throws org.kuali.rice.kew.api.exception.WorkflowException recall this workflowDocument optionally providing an annotation for this action taken which will show up in the route log for this document corresponding to this action taken- Parameters:
workflowDocument-annotation-- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
complete
void complete(org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation, String nodeName, List adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException - Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-