List of usage examples for com.liferay.portal.kernel.workflow WorkflowTaskManagerUtil getWorkflowTask
public static WorkflowTask getWorkflowTask(long companyId, long workflowTaskId) throws WorkflowException
From source file:com.liferay.portlet.workflowtasks.action.ActionUtil.java
License:Open Source License
public static void getWorkflowTask(HttpServletRequest request) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY); long workflowTaskId = ParamUtil.getLong(request, "workflowTaskId"); WorkflowTask workflowTask = null;/*from w w w .j av a2 s. c o m*/ if (workflowTaskId > 0) { workflowTask = WorkflowTaskManagerUtil.getWorkflowTask(themeDisplay.getCompanyId(), workflowTaskId); } request.setAttribute(WebKeys.WORKFLOW_TASK, workflowTask); }