use of org.kuali.kfs.kew.api.WorkflowDocument in project cu-kfs by CU-CommunityApps.
the class CuVendorMaintainableImpl method doRouteStatusChange.
@Override
public void doRouteStatusChange(DocumentHeader header) {
LOG.debug("doRouteStatusChange: entering");
super.doRouteStatusChange(header);
VendorDetail vendorDetail = (VendorDetail) getBusinessObject();
WorkflowDocument workflowDoc = header.getWorkflowDocument();
if (workflowDoc.isProcessed()) {
LOG.debug("doRouteStatusChange: workflow is processed");
if (recordPvenRouteStatusChangeForPaymentWorksIsEnabled()) {
performPaymentWorksApprovalProcessingForVendor(vendorDetail, this.getDocumentNumber(), this.getMaintenanceAction());
}
} else if (workflowDoc.isDisapproved() || workflowDoc.isCanceled()) {
LOG.debug("doRouteStatusChange: disapproved or canceled");
if (recordPvenRouteStatusChangeForPaymentWorksIsEnabled()) {
performPaymentWorksDisapprovalCancelProcessingForVendor(vendorDetail, this.getDocumentNumber(), this.getMaintenanceAction());
}
}
}
Aggregations