public class WorkflowDefinitionManagerUtil
extends Object
Constructor and Description |
---|
WorkflowDefinitionManagerUtil() |
Modifier and Type | Method and Description |
---|---|
static WorkflowDefinition |
deployWorkflowDefinition(long companyId,
long userId,
String title,
byte[] bytes) |
static int |
getActiveWorkflowDefinitionCount(long companyId) |
static int |
getActiveWorkflowDefinitionCount(long companyId,
String name) |
static List<WorkflowDefinition> |
getActiveWorkflowDefinitions(long companyId,
int start,
int end,
OrderByComparator<WorkflowDefinition> orderByComparator) |
static List<WorkflowDefinition> |
getActiveWorkflowDefinitions(long companyId,
String name,
int start,
int end,
OrderByComparator<WorkflowDefinition> orderByComparator) |
static WorkflowDefinition |
getLatestKaleoDefinition(long companyId,
String name) |
static WorkflowDefinition |
getWorkflowDefinition(long companyId,
String name,
int version) |
static int |
getWorkflowDefinitionCount(long companyId) |
static int |
getWorkflowDefinitionCount(long companyId,
String name) |
static WorkflowDefinitionManager |
getWorkflowDefinitionManager() |
static List<WorkflowDefinition> |
getWorkflowDefinitions(long companyId,
int start,
int end,
OrderByComparator<WorkflowDefinition> orderByComparator) |
static List<WorkflowDefinition> |
getWorkflowDefinitions(long companyId,
String name,
int start,
int end,
OrderByComparator<WorkflowDefinition> orderByComparator) |
void |
setWorkflowDefinitionManager(WorkflowDefinitionManager workflowDefinitionManager) |
static void |
undeployWorkflowDefinition(long companyId,
long userId,
String name,
int version) |
static WorkflowDefinition |
updateActive(long companyId,
long userId,
String name,
int version,
boolean active) |
static WorkflowDefinition |
updateTitle(long companyId,
long userId,
String name,
int version,
String title) |
static void |
validateWorkflowDefinition(byte[] bytes) |
public static WorkflowDefinition deployWorkflowDefinition(long companyId, long userId, String title, byte[] bytes) throws WorkflowException
WorkflowException
public static int getActiveWorkflowDefinitionCount(long companyId) throws WorkflowException
WorkflowException
public static int getActiveWorkflowDefinitionCount(long companyId, String name) throws WorkflowException
WorkflowException
public static List<WorkflowDefinition> getActiveWorkflowDefinitions(long companyId, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowException
public static List<WorkflowDefinition> getActiveWorkflowDefinitions(long companyId, String name, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowException
public static WorkflowDefinition getLatestKaleoDefinition(long companyId, String name) throws WorkflowException
WorkflowException
public static WorkflowDefinition getWorkflowDefinition(long companyId, String name, int version) throws WorkflowException
WorkflowException
public static int getWorkflowDefinitionCount(long companyId) throws WorkflowException
WorkflowException
public static int getWorkflowDefinitionCount(long companyId, String name) throws WorkflowException
WorkflowException
public static WorkflowDefinitionManager getWorkflowDefinitionManager()
public static List<WorkflowDefinition> getWorkflowDefinitions(long companyId, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowException
public static List<WorkflowDefinition> getWorkflowDefinitions(long companyId, String name, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowException
public static void undeployWorkflowDefinition(long companyId, long userId, String name, int version) throws WorkflowException
WorkflowException
public static WorkflowDefinition updateActive(long companyId, long userId, String name, int version, boolean active) throws WorkflowException
WorkflowException
public static WorkflowDefinition updateTitle(long companyId, long userId, String name, int version, String title) throws WorkflowException
WorkflowException
public static void validateWorkflowDefinition(byte[] bytes) throws WorkflowException
WorkflowException
public void setWorkflowDefinitionManager(WorkflowDefinitionManager workflowDefinitionManager)