Example usage for com.liferay.portal.kernel.workflow WorkflowTaskManagerUtil getWorkflowTask

List of usage examples for com.liferay.portal.kernel.workflow WorkflowTaskManagerUtil getWorkflowTask

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.workflow WorkflowTaskManagerUtil getWorkflowTask.

Prototype

public static WorkflowTask getWorkflowTask(long companyId, long workflowTaskId) throws WorkflowException 

Source Link

Usage

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);
}