Example usage for com.liferay.portal.kernel.workflow WorkflowInstanceManagerUtil signalWorkflowInstance

List of usage examples for com.liferay.portal.kernel.workflow WorkflowInstanceManagerUtil signalWorkflowInstance

Introduction

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

Prototype

public static WorkflowInstance signalWorkflowInstance(long companyId, long userId, long workflowInstanceId,
            String transitionName, Map<String, Serializable> workflowContext) throws WorkflowException 

Source Link

Usage

From source file:com.liferay.portlet.workflowinstances.action.EditWorkflowInstanceAction.java

License:Open Source License

protected void signalInstance(ActionRequest actionRequest) throws Exception {

    ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);

    long workflowInstanceId = ParamUtil.getLong(actionRequest, "workflowInstanceId");

    String transitionName = ParamUtil.getString(actionRequest, "transitionName");

    WorkflowInstanceManagerUtil.signalWorkflowInstance(themeDisplay.getCompanyId(), themeDisplay.getUserId(),
            workflowInstanceId, transitionName, null);
}