本文整理汇总了Java中org.kuali.rice.kew.api.action.WorkflowDocumentActionsService.superUserBlanketApprove方法的典型用法代码示例。如果您正苦于以下问题:Java WorkflowDocumentActionsService.superUserBlanketApprove方法的具体用法?Java WorkflowDocumentActionsService.superUserBlanketApprove怎么用?Java WorkflowDocumentActionsService.superUserBlanketApprove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kuali.rice.kew.api.action.WorkflowDocumentActionsService
的用法示例。
在下文中一共展示了WorkflowDocumentActionsService.superUserBlanketApprove方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: superUserApprove
import org.kuali.rice.kew.api.action.WorkflowDocumentActionsService; //导入方法依赖的package包/类
public ActionForward superUserApprove(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
KualiDocumentFormBase documentForm = (KualiDocumentFormBase)form;
if(StringUtils.isBlank(documentForm.getSuperUserAnnotation())) {
GlobalVariables.getMessageMap().putErrorForSectionId("superuser.errors", "superuser.approve.annotation.missing", "");
return mapping.findForward(RiceConstants.MAPPING_BASIC);
} else if (!documentForm.getSelectedActionRequests().isEmpty()) {
GlobalVariables.getMessageMap().putErrorForSectionId("superuser.errors", "superuser.approve.when.actions.checked", "");
return mapping.findForward(RiceConstants.MAPPING_BASIC);
} else if (!documentForm.isStateAllowsApproveOrDisapprove()) {
GlobalVariables.getMessageMap().putErrorForSectionId("superuser.errors", "superuser.approve.not.allowed", "");
return mapping.findForward(RiceConstants.MAPPING_BASIC);
}
WorkflowDocumentActionsService documentActions = getWorkflowDocumentActionsService(documentForm.getWorkflowDocument().getDocumentTypeId());
DocumentActionParameters parameters = DocumentActionParameters.create(documentForm.getDocId(), GlobalVariables.getUserSession().getPrincipalId(), documentForm.getSuperUserAnnotation());
documentActions.superUserBlanketApprove(parameters, true);
GlobalVariables.getMessageMap().putInfo("document", "general.routing.superuser.approved", documentForm.getDocId());
documentForm.setSuperUserAnnotation("");
return mapping.findForward(RiceConstants.MAPPING_BASIC);
}
示例2: approve
import org.kuali.rice.kew.api.action.WorkflowDocumentActionsService; //导入方法依赖的package包/类
public ActionForward approve(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
LOG.info("entering approve() ...");
SuperUserForm superUserForm = (SuperUserForm) form;
String documentId = superUserForm.getRouteHeader().getDocumentId();
WorkflowDocumentActionsService documentActions = getWorkflowDocumentActionsService(documentId);
DocumentActionParameters parameters = DocumentActionParameters.create(documentId, getUserSession(request)
.getPrincipalId(), superUserForm.getAnnotation());
documentActions.superUserBlanketApprove(parameters, superUserForm.isRunPostProcessorLogic());
saveDocumentMessage("general.routing.superuser.approved", request, superUserForm.getDocumentId(), null);
LOG.info("exiting approve() ...");
superUserForm.getActionRequests().clear();
initForm(request, form);
return defaultDispatch(mapping, form, request, response);
}