public class WorkflowDefinitionManagerUtil
extends java.lang.Object
| Constructor and Description |
|---|
WorkflowDefinitionManagerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static com.liferay.portal.kernel.workflow.WorkflowDefinition |
deployWorkflowDefinition(long companyId,
long userId,
java.lang.String title,
java.lang.String name,
byte[] bytes) |
static int |
getActiveWorkflowDefinitionsCount(long companyId) |
static int |
getWorkflowDefinitionsCount(long companyId,
java.lang.String name) |
static java.util.List<com.liferay.portal.kernel.workflow.WorkflowDefinition> |
liberalGetActiveWorkflowDefinitions(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.workflow.WorkflowDefinition> orderByComparator) |
static com.liferay.portal.kernel.workflow.WorkflowDefinition |
liberalGetLatestWorkflowDefinition(long companyId,
java.lang.String name) |
static java.util.List<com.liferay.portal.kernel.workflow.WorkflowDefinition> |
liberalGetLatestWorkflowDefinitions(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.workflow.WorkflowDefinition> orderByComparator) |
static com.liferay.portal.kernel.workflow.WorkflowDefinition |
liberalGetWorkflowDefinition(long companyId,
java.lang.String name,
int version) |
static java.util.List<com.liferay.portal.kernel.workflow.WorkflowDefinition> |
liberalGetWorkflowDefinitions(long companyId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.workflow.WorkflowDefinition> orderByComparator) |
static com.liferay.portal.kernel.workflow.WorkflowDefinition |
saveWorkflowDefinition(long companyId,
long userId,
java.lang.String title,
java.lang.String name,
byte[] bytes)
Saves a workflow definition without activating it or validating its data.
|
static com.liferay.portal.kernel.workflow.WorkflowDefinition |
updateActive(long companyId,
long userId,
java.lang.String name,
int version,
boolean active) |
public static com.liferay.portal.kernel.workflow.WorkflowDefinition deployWorkflowDefinition(long companyId,
long userId,
java.lang.String title,
java.lang.String name,
byte[] bytes)
throws com.liferay.portal.kernel.workflow.WorkflowException
com.liferay.portal.kernel.workflow.WorkflowExceptionpublic static int getActiveWorkflowDefinitionsCount(long companyId)
throws com.liferay.portal.kernel.workflow.WorkflowException
com.liferay.portal.kernel.workflow.WorkflowExceptionpublic static int getWorkflowDefinitionsCount(long companyId,
java.lang.String name)
throws com.liferay.portal.kernel.workflow.WorkflowException
com.liferay.portal.kernel.workflow.WorkflowExceptionpublic static java.util.List<com.liferay.portal.kernel.workflow.WorkflowDefinition> liberalGetActiveWorkflowDefinitions(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.workflow.WorkflowDefinition> orderByComparator)
throws com.liferay.portal.kernel.workflow.WorkflowException
com.liferay.portal.kernel.workflow.WorkflowExceptionpublic static com.liferay.portal.kernel.workflow.WorkflowDefinition liberalGetLatestWorkflowDefinition(long companyId,
java.lang.String name)
throws com.liferay.portal.kernel.workflow.WorkflowException
com.liferay.portal.kernel.workflow.WorkflowExceptionpublic static java.util.List<com.liferay.portal.kernel.workflow.WorkflowDefinition> liberalGetLatestWorkflowDefinitions(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.workflow.WorkflowDefinition> orderByComparator)
throws com.liferay.portal.kernel.workflow.WorkflowException
com.liferay.portal.kernel.workflow.WorkflowExceptionpublic static com.liferay.portal.kernel.workflow.WorkflowDefinition liberalGetWorkflowDefinition(long companyId,
java.lang.String name,
int version)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static java.util.List<com.liferay.portal.kernel.workflow.WorkflowDefinition> liberalGetWorkflowDefinitions(long companyId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.workflow.WorkflowDefinition> orderByComparator)
throws com.liferay.portal.kernel.workflow.WorkflowException
com.liferay.portal.kernel.workflow.WorkflowExceptionpublic static com.liferay.portal.kernel.workflow.WorkflowDefinition saveWorkflowDefinition(long companyId,
long userId,
java.lang.String title,
java.lang.String name,
byte[] bytes)
throws com.liferay.portal.kernel.workflow.WorkflowException
deployWorkflowDefinition(long, long, String, String, byte[]) instead.companyId - the company ID of the workflow definitionuserId - the ID of the user saving the workflow definitiontitle - the workflow definition's titlename - the workflow definition's namebytes - the data saved as the workflow definition's contentcom.liferay.portal.kernel.workflow.WorkflowException - if there was an issue saving the workflow
definitionpublic static com.liferay.portal.kernel.workflow.WorkflowDefinition updateActive(long companyId,
long userId,
java.lang.String name,
int version,
boolean active)
throws com.liferay.portal.kernel.workflow.WorkflowException
com.liferay.portal.kernel.workflow.WorkflowException