Example usage for com.liferay.portal.kernel.service WorkflowDefinitionLinkLocalServiceUtil updateWorkflowDefinitionLink

List of usage examples for com.liferay.portal.kernel.service WorkflowDefinitionLinkLocalServiceUtil updateWorkflowDefinitionLink

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.service WorkflowDefinitionLinkLocalServiceUtil updateWorkflowDefinitionLink.

Prototype

public static com.liferay.portal.kernel.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(long userId,
            long companyId, long groupId, String className, long classPK, long typePK,
            String workflowDefinitionName, int workflowDefinitionVersion)
            throws com.liferay.portal.kernel.exception.PortalException 

Source Link

Usage

From source file:com.liferay.calendar.test.util.CalendarWorkflowTestUtil.java

License:Open Source License

public static void activateWorkflow(Group group) throws PortalException {
    WorkflowDefinitionLinkLocalServiceUtil.updateWorkflowDefinitionLink(TestPropsValues.getUserId(),
            TestPropsValues.getCompanyId(), group.getGroupId(), CalendarBooking.class.getName(), 0, 0,
            "Single Approver", 1);
}