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
WorkflowExceptionpublic static int getActiveWorkflowDefinitionCount(long companyId)
throws WorkflowException
WorkflowExceptionpublic static int getActiveWorkflowDefinitionCount(long companyId,
String name)
throws WorkflowException
WorkflowExceptionpublic static List<WorkflowDefinition> getActiveWorkflowDefinitions(long companyId, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowExceptionpublic static List<WorkflowDefinition> getActiveWorkflowDefinitions(long companyId, String name, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowExceptionpublic static WorkflowDefinition getLatestKaleoDefinition(long companyId, String name) throws WorkflowException
WorkflowExceptionpublic static WorkflowDefinition getWorkflowDefinition(long companyId, String name, int version) throws WorkflowException
WorkflowExceptionpublic static int getWorkflowDefinitionCount(long companyId)
throws WorkflowException
WorkflowExceptionpublic static int getWorkflowDefinitionCount(long companyId,
String name)
throws WorkflowException
WorkflowExceptionpublic static WorkflowDefinitionManager getWorkflowDefinitionManager()
public static List<WorkflowDefinition> getWorkflowDefinitions(long companyId, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowExceptionpublic static List<WorkflowDefinition> getWorkflowDefinitions(long companyId, String name, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowExceptionpublic static void undeployWorkflowDefinition(long companyId,
long userId,
String name,
int version)
throws WorkflowException
WorkflowExceptionpublic static WorkflowDefinition updateActive(long companyId, long userId, String name, int version, boolean active) throws WorkflowException
WorkflowExceptionpublic static WorkflowDefinition updateTitle(long companyId, long userId, String name, int version, String title) throws WorkflowException
WorkflowExceptionpublic static void validateWorkflowDefinition(byte[] bytes)
throws WorkflowException
WorkflowExceptionpublic void setWorkflowDefinitionManager(WorkflowDefinitionManager workflowDefinitionManager)