当前位置: 首页>>代码示例>>Java>>正文


Java WorkflowDocumentActionsService.superUserBlanketApprove方法代码示例

本文整理汇总了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);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:21,代码来源:KualiDocumentActionBase.java

示例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);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:16,代码来源:SuperUserAction.java


注:本文中的org.kuali.rice.kew.api.action.WorkflowDocumentActionsService.superUserBlanketApprove方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。