@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) |
int |
getActiveWorkflowDefinitionCount(long companyId)
Deprecated.
As of Athanasius (7.3.x), replaced by
getActiveWorkflowDefinitionsCount(long) |
int |
getActiveWorkflowDefinitionCount(long companyId,
String name)
Deprecated.
As of Athanasius (7.3.x), with no direct replacement
|
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(long companyId,
int start,
int end,
OrderByComparator<WorkflowDefinition> orderByComparator) |
default int |
getLatestWorkflowDefinitionsCount(long companyId) |
WorkflowDefinition |
getWorkflowDefinition(long companyId,
String name,
int version) |
int |
getWorkflowDefinitionCount(long companyId)
Deprecated.
As of Athanasius (7.3.x), with no direct replacement
|
int |
getWorkflowDefinitionCount(long companyId,
String name)
Deprecated.
As of Athanasius (7.3.x), replaced by
getWorkflowDefinitionsCount(long, String) |
List<WorkflowDefinition> |
getWorkflowDefinitions(long companyId,
int start,
int end,
OrderByComparator<WorkflowDefinition> orderByComparator)
Deprecated.
As of Athanasius (7.3.x), with no direct replacement
|
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.
|
void |
undeployWorkflowDefinition(long companyId,
long userId,
String name,
int version) |
WorkflowDefinition |
updateActive(long companyId,
long userId,
String name,
int version,
boolean active) |
WorkflowDefinition |
updateTitle(long companyId,
long userId,
String name,
int version,
String title) |
void |
validateWorkflowDefinition(byte[] bytes) |
default WorkflowDefinition deployWorkflowDefinition(long companyId, long userId, String title, String name, byte[] bytes) throws WorkflowException
WorkflowException
@Deprecated int getActiveWorkflowDefinitionCount(long companyId) throws WorkflowException
getActiveWorkflowDefinitionsCount(long)
WorkflowException
@Deprecated int getActiveWorkflowDefinitionCount(long companyId, String name) throws WorkflowException
WorkflowException
List<WorkflowDefinition> getActiveWorkflowDefinitions(long companyId, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowException
List<WorkflowDefinition> getActiveWorkflowDefinitions(long companyId, String name, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowException
default int getActiveWorkflowDefinitionsCount(long companyId) throws WorkflowException
WorkflowException
default WorkflowDefinition getLatestWorkflowDefinition(long companyId, String name) throws WorkflowException
WorkflowException
default List<WorkflowDefinition> getLatestWorkflowDefinitions(long companyId, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowException
default int getLatestWorkflowDefinitionsCount(long companyId) throws WorkflowException
WorkflowException
WorkflowDefinition getWorkflowDefinition(long companyId, String name, int version) throws WorkflowException
WorkflowException
@Deprecated int getWorkflowDefinitionCount(long companyId) throws WorkflowException
WorkflowException
@Deprecated int getWorkflowDefinitionCount(long companyId, String name) throws WorkflowException
getWorkflowDefinitionsCount(long, String)
WorkflowException
@Deprecated List<WorkflowDefinition> getWorkflowDefinitions(long companyId, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowException
List<WorkflowDefinition> getWorkflowDefinitions(long companyId, String name, int start, int end, OrderByComparator<WorkflowDefinition> orderByComparator) throws WorkflowException
WorkflowException
default int getWorkflowDefinitionsCount(long companyId, String name) throws WorkflowException
WorkflowException
default 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
definitionvoid undeployWorkflowDefinition(long companyId, long userId, String name, int version) throws WorkflowException
WorkflowException
WorkflowDefinition updateActive(long companyId, long userId, String name, int version, boolean active) throws WorkflowException
WorkflowException
WorkflowDefinition updateTitle(long companyId, long userId, String name, int version, String title) throws WorkflowException
WorkflowException
void validateWorkflowDefinition(byte[] bytes) throws WorkflowException
WorkflowException