List of usage examples for com.liferay.portal.kernel.util Constants ASSIGN
String ASSIGN
To view the source code for com.liferay.portal.kernel.util Constants ASSIGN.
Click Source Link
From source file:com.liferay.portlet.workflowtasks.action.EditWorkflowTaskAction.java
License:Open Source License
@Override public void processAction(ActionMapping mapping, ActionForm form, PortletConfig portletConfig, ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { String cmd = ParamUtil.getString(actionRequest, Constants.CMD); try {// w w w .j a v a2s .co m if (cmd.equals(Constants.ASSIGN)) { assignTask(actionRequest); } else if (cmd.equals(Constants.SAVE)) { completeTask(actionRequest); } else if (cmd.equals(Constants.UPDATE)) { updateTask(actionRequest); } sendRedirect(actionRequest, actionResponse); } catch (Exception e) { if (e instanceof WorkflowTaskDueDateException) { SessionErrors.add(actionRequest, e.getClass().getName()); } else if (e instanceof PrincipalException || e instanceof WorkflowException) { SessionErrors.add(actionRequest, e.getClass().getName()); setForward(actionRequest, "portlet.workflow_tasks.error"); } else { throw e; } } }