Package org.kuali.rice.ken.service.impl
Class NotificationWorkflowDocumentServiceImpl
java.lang.Object
org.kuali.rice.ken.service.impl.NotificationWorkflowDocumentServiceImpl
- All Implemented Interfaces:
NotificationWorkflowDocumentService
public class NotificationWorkflowDocumentServiceImpl
extends Object
implements NotificationWorkflowDocumentService
This class is responsible for interacting with KEW - this is the default implementation that
leverages the KEW client API.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
ConstructorsConstructorDescriptionNotificationWorkflowDocumentServiceImpl(NotificationMessageContentService messageContentService) Constructs a NotificationWorkflowDocumentServiceImpl instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAllFyisAndAcknowledgeNotificationWorkflowDocument(String initiatorUserId, org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation) This method is responsible for canceling a workflow document; which in turn simulates the "checking-off" of a notification in the notification list by the system through an auto-removal.createAndAdHocRouteNotificationWorkflowDocument(NotificationMessageDelivery messageDelivery, String initiatorUserId, String recipientUserId, String annotation) Implements by instantiating a NotificationWorkflowDocument, which in turn interacts with Workflow to set it up with an initiator of the passed in user id.org.kuali.rice.kew.api.WorkflowDocumentgetNotificationWorkflowDocumentByDocumentId(String initiatorUserId, String workflowDocumentId) This service method is implemented by constructing a NotificationWorkflowDocument using the pre-existing document Id that is passed in.voidterminateWorkflowDocument(org.kuali.rice.kew.api.WorkflowDocument document) This method is responsible for unconditionally terminating a workflow document, after which there should be no pending action requests against this document.
-
Constructor Details
-
NotificationWorkflowDocumentServiceImpl
public NotificationWorkflowDocumentServiceImpl(NotificationMessageContentService messageContentService) Constructs a NotificationWorkflowDocumentServiceImpl instance.- Parameters:
messageContentService-
-
-
Method Details
-
createAndAdHocRouteNotificationWorkflowDocument
public String createAndAdHocRouteNotificationWorkflowDocument(NotificationMessageDelivery messageDelivery, String initiatorUserId, String recipientUserId, String annotation) Implements by instantiating a NotificationWorkflowDocument, which in turn interacts with Workflow to set it up with an initiator of the passed in user id.- Specified by:
createAndAdHocRouteNotificationWorkflowDocumentin interfaceNotificationWorkflowDocumentService- Parameters:
messageDelivery- - the specific NotificationMessageDelivery that is associated with this ad hoc routeinitiatorUserId- - the person/workflow user who is responsible for "initiating" this workflow documentrecipientUserId- - the person/workflow user who will recieve this document via an ad hoc routeannotation- - a description of the workflow ad hoc route transaction- Returns:
- String - the id of the workflow document
- See Also:
-
getNotificationWorkflowDocumentByDocumentId
public org.kuali.rice.kew.api.WorkflowDocument getNotificationWorkflowDocumentByDocumentId(String initiatorUserId, String workflowDocumentId) This service method is implemented by constructing a NotificationWorkflowDocument using the pre-existing document Id that is passed in.- Specified by:
getNotificationWorkflowDocumentByDocumentIdin interfaceNotificationWorkflowDocumentService- Parameters:
initiatorUserId-workflowDocumentId-- Returns:
- NotificationWorkflowDocument
- See Also:
-
clearAllFyisAndAcknowledgeNotificationWorkflowDocument
public void clearAllFyisAndAcknowledgeNotificationWorkflowDocument(String initiatorUserId, org.kuali.rice.kew.api.WorkflowDocument workflowDocument, String annotation) Description copied from interface:NotificationWorkflowDocumentServiceThis method is responsible for canceling a workflow document; which in turn simulates the "checking-off" of a notification in the notification list by the system through an auto-removal.- Specified by:
clearAllFyisAndAcknowledgeNotificationWorkflowDocumentin interfaceNotificationWorkflowDocumentService- Parameters:
initiatorUserId-workflowDocument-annotation-- See Also:
-
terminateWorkflowDocument
public void terminateWorkflowDocument(org.kuali.rice.kew.api.WorkflowDocument document) Description copied from interface:NotificationWorkflowDocumentServiceThis method is responsible for unconditionally terminating a workflow document, after which there should be no pending action requests against this document.- Specified by:
terminateWorkflowDocumentin interfaceNotificationWorkflowDocumentService- Parameters:
document- workflow document to terminate- See Also:
-