import org.kuali.rice.kew.actionlist.ActionListFilter; //导入方法依赖的package包/类
public ActionForward filter(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
ActionListFilterForm filterForm = (ActionListFilterForm) form;
//validate the filter through the actionitem/actionlist service (I'm thinking actionlistservice)
final UserSession uSession = getUserSession();
ActionListFilter alFilter = filterForm.getLoadedFilter();
if (StringUtils.isNotBlank(alFilter.getDelegatorId()) && !KewApiConstants.DELEGATION_DEFAULT.equals(alFilter.getDelegatorId()) &&
StringUtils.isNotBlank(alFilter.getPrimaryDelegateId()) && !KewApiConstants.PRIMARY_DELEGATION_DEFAULT.equals(alFilter.getPrimaryDelegateId())){
// If the primary and secondary delegation drop-downs are both visible and are both set to non-default values,
// then reset the secondary delegation drop-down to its default value.
alFilter.setDelegatorId(KewApiConstants.DELEGATION_DEFAULT);
}
uSession.addObject(KewApiConstants.ACTION_LIST_FILTER_ATTR_NAME, alFilter);
if (GlobalVariables.getMessageMap().hasNoErrors()) {
request.getSession().setAttribute(KewApiConstants.REQUERY_ACTION_LIST_KEY, "true");
return mapping.findForward("viewActionList");
}
return mapping.findForward("viewFilter");
}