本文整理汇总了Java中org.kuali.rice.krad.rules.rule.event.SendAdHocRequestsEvent类的典型用法代码示例。如果您正苦于以下问题:Java SendAdHocRequestsEvent类的具体用法?Java SendAdHocRequestsEvent怎么用?Java SendAdHocRequestsEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SendAdHocRequestsEvent类属于org.kuali.rice.krad.rules.rule.event包,在下文中一共展示了SendAdHocRequestsEvent类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: sendAdHocRequests
import org.kuali.rice.krad.rules.rule.event.SendAdHocRequestsEvent; //导入依赖的package包/类
public ActionForward sendAdHocRequests(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
KualiDocumentFormBase kualiDocumentFormBase = (KualiDocumentFormBase) form;
Document document = kualiDocumentFormBase.getDocument();
boolean rulePassed = getKualiRuleService().applyRules(new SendAdHocRequestsEvent(document));
if (rulePassed) {
getDocumentService().sendAdHocRequests(document, kualiDocumentFormBase.getAnnotation(), combineAdHocRecipients(kualiDocumentFormBase));
KNSGlobalVariables.getMessageList().add(RiceKeyConstants.MESSAGE_SEND_AD_HOC_REQUESTS_SUCCESSFUL);
}
return mapping.findForward(RiceConstants.MAPPING_BASIC);
}