public class WorkflowDefinitionManagerUtil
extends Object
Constructor and Description |
---|
WorkflowDefinitionManagerUtil() |
Modifier and Type | Method and Description |
---|---|
static WorkflowDefinition |
deployWorkflowDefinition(long companyId,
long userId,
String title,
String name,
byte[] bytes) |
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 int |
getActiveWorkflowDefinitionsCount(long companyId) |
static WorkflowDefinition |
getLatestWorkflowDefinition(long companyId,
String name) |
static List<WorkflowDefinition> |
getLatestWorkflowDefinitions(long companyId,
int start,
int end,
OrderByComparator<WorkflowDefinition> orderByComparator) |
static int |
getLatestWorkflowDefinitionsCount(long companyId) |
static WorkflowDefinition |
getWorkflowDefinition(long companyId,
String name,
int version) |
static List<WorkflowDefinition> |
getWorkflowDefinitions(long companyId,
String name,
int start,
int end,
OrderByComparator<WorkflowDefinition> orderByComparator) |
static int |
getWorkflowDefinitionsCount(long companyId,
String name) |
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 void |
validateWorkflowDefinition(byte[] bytes) |
public static WorkflowDefinition deployWorkflowDefinition(long companyId, long userId, String title, String name, byte[] bytes) 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 int getActiveWorkflowDefinitionsCount(long companyId) throws WorkflowException
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 int getLatestWorkflowDefinitionsCount(long companyId) throws WorkflowException
WorkflowException
public static WorkflowDefinition getWorkflowDefinition(long companyId, String name, int version) throws WorkflowException
WorkflowException
public static List<WorkflowDefinition> getWorkflowDefinitions(long companyId, String name, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowException
public static int getWorkflowDefinitionsCount(long companyId, String name) 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 void validateWorkflowDefinition(byte[] bytes) throws WorkflowException
WorkflowException
public void setWorkflowDefinitionManager(WorkflowDefinitionManager workflowDefinitionManager)