public class KraWorkflowServiceImpl extends Object implements KraWorkflowService
| Modifier and Type | Field and Description |
|---|---|
protected org.kuali.rice.kew.api.actionlist.ActionListService |
actionListService |
protected org.kuali.rice.kew.api.action.WorkflowDocumentActionsService |
workflowDocumentActionsService |
protected org.kuali.rice.kew.api.document.WorkflowDocumentService |
workflowDocumentService |
| Constructor and Description |
|---|
KraWorkflowServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPerformWorkflowAction(ProposalDevelopmentDocument document) |
protected org.kuali.rice.kew.api.actionlist.ActionListService |
getActionListService() |
protected org.kuali.rice.kew.api.WorkflowDocument |
getWorkflowDocument(org.kuali.rice.krad.document.Document doc)
Get the corresponding workflow document.
|
protected org.kuali.rice.kew.api.WorkflowDocument |
getWorkflowDocument(org.kuali.rice.krad.document.Document doc,
String principalId)
This method gets the workflow document using the given principalId.
|
boolean |
hasPendingApprovalRequests(org.kuali.rice.kew.api.WorkflowDocument workflowDoc) |
boolean |
hasWorkflowPermission(String userId,
org.kuali.rice.krad.document.Document doc)
Does the given user have the right to work on the document if
the document is in workflow?
|
boolean |
isClosed(org.kuali.rice.krad.document.Document doc)
Is the document closed? A closed document has been Approved,
Disapproved, Canceled, or encountered an Exception.
|
boolean |
isDocumentOnNode(org.kuali.rice.krad.document.Document document,
String nodeName)
Determine if the document is on a particular node.
|
boolean |
isEnRoute(org.kuali.rice.krad.document.Document doc)
Is the document currently enroute within workflow?
|
boolean |
isFinalApproval(org.kuali.rice.kew.api.WorkflowDocument workflowDoc)
Checks to see if all pending workflow requests are completed or will
be completed due to a user not wanting to see future requests.
|
boolean |
isInWorkflow(org.kuali.rice.krad.document.Document doc)
Determine if the document has been submitted to workflow or not?
|
boolean |
isUserActionRequested(org.kuali.rice.krad.document.Document doc,
String principalId)
Determine if the user has an outstanding review action request (A/F/K).
|
boolean |
isUserAdHocRequestRecipient(org.kuali.rice.krad.document.Document document,
String principalId,
String nodeName)
Determine if the user has an outstanding adHoc request.
|
boolean |
isUserApprovalRequested(org.kuali.rice.krad.document.Document doc,
String principalId)
Determine if the user has an outstanding approval request.
|
boolean |
isUserRouteRespRequestRecipient(org.kuali.rice.krad.document.Document document,
String principalId,
String nodeName)
Determine if the user has an outstanding action request though pre-configured responsibility
|
ProposalDevelopmentApproverViewDO |
populateApproverViewDO(ProposalDevelopmentForm proposalDevelopmentForm) |
boolean |
requestAlreadyApproved(org.kuali.rice.kew.api.WorkflowDocument workflowDoc,
org.kuali.rice.kew.api.action.ActionRequest actionRequest)
Checks to see if the pending request will complete due to a user
requesting to not see future requests.
|
void |
setActionListService(org.kuali.rice.kew.api.actionlist.ActionListService actionListService) |
void |
setWorkflowDocumentActionsService(org.kuali.rice.kew.api.action.WorkflowDocumentActionsService workflowDocumentActionsService) |
void |
setWorkflowDocumentService(org.kuali.rice.kew.api.document.WorkflowDocumentService workflowDocumentService) |
protected org.kuali.rice.kew.api.action.WorkflowDocumentActionsService workflowDocumentActionsService
protected org.kuali.rice.kew.api.document.WorkflowDocumentService workflowDocumentService
protected org.kuali.rice.kew.api.actionlist.ActionListService actionListService
public void setWorkflowDocumentActionsService(org.kuali.rice.kew.api.action.WorkflowDocumentActionsService workflowDocumentActionsService)
public void setWorkflowDocumentService(org.kuali.rice.kew.api.document.WorkflowDocumentService workflowDocumentService)
public boolean hasWorkflowPermission(String userId, org.kuali.rice.krad.document.Document doc)
KraWorkflowServicehasWorkflowPermission in interface KraWorkflowServicedoc - the documentKraWorkflowService.hasWorkflowPermission(java.lang.String, org.kuali.rice.krad.document.Document)public boolean isClosed(org.kuali.rice.krad.document.Document doc)
KraWorkflowServiceisClosed in interface KraWorkflowServicedoc - the documentKraWorkflowService.isClosed(org.kuali.rice.krad.document.Document)public boolean isEnRoute(org.kuali.rice.krad.document.Document doc)
KraWorkflowServiceisEnRoute in interface KraWorkflowServicedoc - the documentKraWorkflowService.isEnRoute(org.kuali.rice.krad.document.Document)public boolean isInWorkflow(org.kuali.rice.krad.document.Document doc)
KraWorkflowServiceisInWorkflow in interface KraWorkflowServicedoc - the documentKraWorkflowService.isInWorkflow(org.kuali.rice.krad.document.Document)protected org.kuali.rice.kew.api.WorkflowDocument getWorkflowDocument(org.kuali.rice.krad.document.Document doc)
doc - the documentprotected org.kuali.rice.kew.api.WorkflowDocument getWorkflowDocument(org.kuali.rice.krad.document.Document doc,
String principalId)
doc - The document you want the workflow document for.principalId - The principalId to use getting the document. This impacts the return values for isApprovalRequested, etc.public boolean isUserApprovalRequested(org.kuali.rice.krad.document.Document doc,
String principalId)
KraWorkflowServiceisUserApprovalRequested in interface KraWorkflowServicedoc - the documentprincipalId - the principalId of the userKraWorkflowService.isUserApprovalRequested(org.kuali.rice.krad.document.Document, java.lang.String)public boolean isUserActionRequested(org.kuali.rice.krad.document.Document doc,
String principalId)
KraWorkflowServiceisUserActionRequested in interface KraWorkflowServicedoc - the documentprincipalId - the principalId of the userKraWorkflowService.isUserApprovalRequested(org.kuali.rice.krad.document.Document, java.lang.String)public boolean isDocumentOnNode(org.kuali.rice.krad.document.Document document,
String nodeName)
KraWorkflowServiceisDocumentOnNode in interface KraWorkflowServicedocument - the documentnodeName - the name of the node.KraWorkflowService.isDocumentOnNode(org.kuali.rice.krad.document.Document, java.lang.String)public boolean isUserAdHocRequestRecipient(org.kuali.rice.krad.document.Document document,
String principalId,
String nodeName)
KraWorkflowServiceisUserAdHocRequestRecipient in interface KraWorkflowServicedocument - the documentprincipalId - the principalId of the userpublic boolean isUserRouteRespRequestRecipient(org.kuali.rice.krad.document.Document document,
String principalId,
String nodeName)
KraWorkflowServiceisUserRouteRespRequestRecipient in interface KraWorkflowServicedocument - the documentprincipalId - the principalId of the userpublic ProposalDevelopmentApproverViewDO populateApproverViewDO(ProposalDevelopmentForm proposalDevelopmentForm)
populateApproverViewDO in interface KraWorkflowServicepublic boolean canPerformWorkflowAction(ProposalDevelopmentDocument document)
canPerformWorkflowAction in interface KraWorkflowServicepublic boolean isFinalApproval(org.kuali.rice.kew.api.WorkflowDocument workflowDoc)
KraWorkflowServiceisFinalApproval in interface KraWorkflowServiceKraWorkflowService.isFinalApproval(org.kuali.rice.kew.api.WorkflowDocument)public boolean requestAlreadyApproved(org.kuali.rice.kew.api.WorkflowDocument workflowDoc,
org.kuali.rice.kew.api.action.ActionRequest actionRequest)
KraWorkflowServicerequestAlreadyApproved in interface KraWorkflowServiceKraWorkflowService.requestAlreadyApproved(org.kuali.rice.kew.api.WorkflowDocument, org.kuali.rice.kew.api.action.ActionRequest)public boolean hasPendingApprovalRequests(org.kuali.rice.kew.api.WorkflowDocument workflowDoc)
hasPendingApprovalRequests in interface KraWorkflowServiceprotected org.kuali.rice.kew.api.actionlist.ActionListService getActionListService()
public void setActionListService(org.kuali.rice.kew.api.actionlist.ActionListService actionListService)
Copyright © 2013 The Kuali Foundation. All Rights Reserved.