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)
Deprecated.
As of Judson (7.1.x), replaced by
deployWorkflowDefinition(long, long, String, String,
byte[]) |
static WorkflowDefinition |
deployWorkflowDefinition(long companyId,
long userId,
String title,
String name,
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)
Deprecated.
As of Judson (7.1.x), replaced by
getLatestWorkflowDefinition(long, String) |
static WorkflowDefinition |
getLatestWorkflowDefinition(long companyId,
String name) |
static List<WorkflowDefinition> |
getLatestWorkflowDefinitions(long companyId,
int start,
int end,
OrderByComparator<WorkflowDefinition> orderByComparator) |
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) |
static WorkflowDefinition |
saveWorkflowDefinition(long companyId,
long userId,
String title,
String name,
byte[] bytes)
Saves a workflow definition without activating it or validating its data.
|
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) |
@Deprecated public static WorkflowDefinition deployWorkflowDefinition(long companyId, long userId, String title, byte[] bytes) throws WorkflowException
deployWorkflowDefinition(long, long, String, String,
byte[])
WorkflowException
public static WorkflowDefinition deployWorkflowDefinition(long companyId, long userId, String title, String name, 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
@Deprecated public static WorkflowDefinition getLatestKaleoDefinition(long companyId, String name) throws WorkflowException
getLatestWorkflowDefinition(long, String)
WorkflowException
public static WorkflowDefinition getLatestWorkflowDefinition(long companyId, String name) throws WorkflowException
WorkflowException
public static List<WorkflowDefinition> getLatestWorkflowDefinitions(long companyId, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) 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 WorkflowDefinition saveWorkflowDefinition(long companyId, long userId, String title, String name, byte[] bytes) throws 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 contentWorkflowException
- if there was an issue saving the workflow
definitionpublic 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)