@MessagingProxy(mode=SYNC) public interface WorkflowDefinitionManager
| Modifier and Type | Method and Description |
|---|---|
default WorkflowDefinition |
deployWorkflowDefinition(long companyId,
long userId,
String title,
String name,
byte[] bytes) |
default WorkflowDefinition |
deployWorkflowDefinition(long companyId,
long userId,
String title,
String name,
String scope,
byte[] bytes) |
List<WorkflowDefinition> |
getActiveWorkflowDefinitions(long companyId,
int start,
int end,
OrderByComparator<WorkflowDefinition> orderByComparator) |
List<WorkflowDefinition> |
getActiveWorkflowDefinitions(long companyId,
String name,
int start,
int end,
OrderByComparator<WorkflowDefinition> orderByComparator) |
default int |
getActiveWorkflowDefinitionsCount(long companyId) |
default WorkflowDefinition |
getLatestWorkflowDefinition(long companyId,
String name) |
default List<WorkflowDefinition> |
getLatestWorkflowDefinitions(Boolean active,
long companyId,
int start,
int end,
OrderByComparator<WorkflowDefinition> orderByComparator) |
default List<WorkflowDefinition> |
getLatestWorkflowDefinitions(long companyId,
int start,
int end,
OrderByComparator<WorkflowDefinition> orderByComparator) |
default int |
getLatestWorkflowDefinitionsCount(Boolean active,
long companyId) |
default int |
getLatestWorkflowDefinitionsCount(long companyId) |
WorkflowDefinition |
getWorkflowDefinition(long companyId,
String name,
int version) |
List<WorkflowDefinition> |
getWorkflowDefinitions(long companyId,
String name,
int start,
int end,
OrderByComparator<WorkflowDefinition> orderByComparator) |
default int |
getWorkflowDefinitionsCount(long companyId,
String name) |
default WorkflowDefinition |
saveWorkflowDefinition(long companyId,
long userId,
String title,
String name,
byte[] bytes)
Saves a workflow definition without activating it or validating its data.
|
default WorkflowDefinition |
saveWorkflowDefinition(long companyId,
long userId,
String title,
String name,
String scope,
byte[] bytes)
Saves a workflow definition without activating it or validating its data.
|
void |
undeployWorkflowDefinition(long companyId,
long userId,
String name,
int version) |
WorkflowDefinition |
updateActive(long companyId,
long userId,
String name,
int version,
boolean active) |
void |
validateWorkflowDefinition(byte[] bytes) |
default WorkflowDefinition deployWorkflowDefinition(long companyId, long userId, String title, String name, byte[] bytes) throws WorkflowException
WorkflowExceptiondefault WorkflowDefinition deployWorkflowDefinition(long companyId, long userId, String title, String name, String scope, byte[] bytes) throws WorkflowException
WorkflowExceptionList<WorkflowDefinition> getActiveWorkflowDefinitions(long companyId, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowExceptionList<WorkflowDefinition> getActiveWorkflowDefinitions(long companyId, String name, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowExceptiondefault int getActiveWorkflowDefinitionsCount(long companyId)
throws WorkflowException
WorkflowExceptiondefault WorkflowDefinition getLatestWorkflowDefinition(long companyId, String name) throws WorkflowException
WorkflowExceptiondefault List<WorkflowDefinition> getLatestWorkflowDefinitions(Boolean active, long companyId, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowExceptiondefault List<WorkflowDefinition> getLatestWorkflowDefinitions(long companyId, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowExceptiondefault int getLatestWorkflowDefinitionsCount(Boolean active,
long companyId)
throws WorkflowException
WorkflowExceptiondefault int getLatestWorkflowDefinitionsCount(long companyId)
throws WorkflowException
WorkflowExceptionWorkflowDefinition getWorkflowDefinition(long companyId, String name, int version) throws WorkflowException
WorkflowExceptionList<WorkflowDefinition> getWorkflowDefinitions(long companyId, String name, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowExceptiondefault int getWorkflowDefinitionsCount(long companyId,
String name)
throws WorkflowException
WorkflowExceptiondefault 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
definitiondefault WorkflowDefinition saveWorkflowDefinition(long companyId, long userId, String title, String name, String scope, 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 namescope - the workflow definition's scopebytes - the data saved as the workflow definition's contentWorkflowException - if there was an issue saving the workflow
definitionvoid undeployWorkflowDefinition(long companyId,
long userId,
String name,
int version)
throws WorkflowException
WorkflowExceptionWorkflowDefinition updateActive(long companyId, long userId, String name, int version, boolean active) throws WorkflowException
WorkflowExceptionvoid validateWorkflowDefinition(byte[] bytes)
throws WorkflowException
WorkflowException