Interface WorkflowInstanceManager
public interface WorkflowInstanceManager
- Author:
- Micha Kiener, Shuyang Zhou, Brian Wing Shun Chan, Marcellus Tavares
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteWorkflowInstance
(long companyId, long workflowInstanceId) getNextTransitionNames
(long companyId, long userId, long workflowInstanceId) getWorkflowInstance
(long companyId, long workflowInstanceId) default WorkflowInstance
getWorkflowInstance
(long companyId, long userId, long workflowInstanceId) int
getWorkflowInstanceCount
(long companyId, Long userId, String[] assetClassNames, Boolean completed) int
getWorkflowInstanceCount
(long companyId, Long userId, String assetClassName, Long assetClassPK, Boolean completed) int
getWorkflowInstanceCount
(long companyId, String workflowDefinitionName, Integer workflowDefinitionVersion, Boolean completed) getWorkflowInstances
(long companyId, Long userId, String[] assetClassNames, Boolean completed, int start, int end, OrderByComparator<WorkflowInstance> orderByComparator) getWorkflowInstances
(long companyId, Long userId, String assetClassName, Long assetClassPK, Boolean completed, int start, int end, OrderByComparator<WorkflowInstance> orderByComparator) getWorkflowInstances
(long companyId, String workflowDefinitionName, Integer workflowDefinitionVersion, Boolean completed, int start, int end, OrderByComparator<WorkflowInstance> orderByComparator) default List<WorkflowInstance>
search
(long companyId, Long userId, Boolean active, String assetClassName, String assetTitle, String assetDescription, String nodeName, String kaleoDefinitionName, Boolean completed, int start, int end, OrderByComparator<WorkflowInstance> orderByComparator) default int
searchCount
(long companyId, Long userId, Boolean active, String assetClassName, String assetTitle, String assetDescription, String nodeName, String kaleoDefinitionName, Boolean completed) searchWorkflowInstances
(long companyId, Long userId, Boolean active, String assetClassName, String assetTitle, String assetDescription, String nodeName, String kaleoDefinitionName, Boolean completed, boolean searchByActiveWorkflowHandlers, int start, int end, OrderByComparator<WorkflowInstance> orderByComparator) signalWorkflowInstance
(long companyId, long userId, long workflowInstanceId, String transitionName, Map<String, Serializable> workflowContext) default WorkflowInstance
signalWorkflowInstance
(long companyId, long userId, long workflowInstanceId, String transitionName, Map<String, Serializable> workflowContext, boolean waitForCompletion) startWorkflowInstance
(long companyId, long groupId, long userId, String workflowDefinitionName, Integer workflowDefinitionVersion, String transitionName, Map<String, Serializable> workflowContext) default WorkflowInstance
startWorkflowInstance
(long companyId, long groupId, long userId, String workflowDefinitionName, Integer workflowDefinitionVersion, String transitionName, Map<String, Serializable> workflowContext, boolean waitForCompletion) default WorkflowInstance
updateActive
(long userId, long companyId, long workflowInstanceId, boolean active) updateWorkflowContext
(long companyId, long workflowInstanceId, Map<String, Serializable> workflowContext)
-
Method Details
-
deleteWorkflowInstance
- Throws:
WorkflowException
-
getNextTransitionNames
List<String> getNextTransitionNames(long companyId, long userId, long workflowInstanceId) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowInstance
WorkflowInstance getWorkflowInstance(long companyId, long workflowInstanceId) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowInstance
default WorkflowInstance getWorkflowInstance(long companyId, long userId, long workflowInstanceId) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowInstanceCount
int getWorkflowInstanceCount(long companyId, Long userId, String assetClassName, Long assetClassPK, Boolean completed) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowInstanceCount
int getWorkflowInstanceCount(long companyId, Long userId, String[] assetClassNames, Boolean completed) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowInstanceCount
int getWorkflowInstanceCount(long companyId, String workflowDefinitionName, Integer workflowDefinitionVersion, Boolean completed) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowInstances
List<WorkflowInstance> getWorkflowInstances(long companyId, Long userId, String assetClassName, Long assetClassPK, Boolean completed, int start, int end, OrderByComparator<WorkflowInstance> orderByComparator) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowInstances
List<WorkflowInstance> getWorkflowInstances(long companyId, Long userId, String[] assetClassNames, Boolean completed, int start, int end, OrderByComparator<WorkflowInstance> orderByComparator) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowInstances
List<WorkflowInstance> getWorkflowInstances(long companyId, String workflowDefinitionName, Integer workflowDefinitionVersion, Boolean completed, int start, int end, OrderByComparator<WorkflowInstance> orderByComparator) throws WorkflowException - Throws:
WorkflowException
-
search
default List<WorkflowInstance> search(long companyId, Long userId, Boolean active, String assetClassName, String assetTitle, String assetDescription, String nodeName, String kaleoDefinitionName, Boolean completed, int start, int end, OrderByComparator<WorkflowInstance> orderByComparator) throws WorkflowException - Throws:
WorkflowException
-
searchCount
default int searchCount(long companyId, Long userId, Boolean active, String assetClassName, String assetTitle, String assetDescription, String nodeName, String kaleoDefinitionName, Boolean completed) throws WorkflowException - Throws:
WorkflowException
-
searchWorkflowInstances
default WorkflowModelSearchResult<WorkflowInstance> searchWorkflowInstances(long companyId, Long userId, Boolean active, String assetClassName, String assetTitle, String assetDescription, String nodeName, String kaleoDefinitionName, Boolean completed, boolean searchByActiveWorkflowHandlers, int start, int end, OrderByComparator<WorkflowInstance> orderByComparator) throws WorkflowException - Throws:
WorkflowException
-
signalWorkflowInstance
WorkflowInstance signalWorkflowInstance(long companyId, long userId, long workflowInstanceId, String transitionName, Map<String, Serializable> workflowContext) throws WorkflowException- Throws:
WorkflowException
-
signalWorkflowInstance
default WorkflowInstance signalWorkflowInstance(long companyId, long userId, long workflowInstanceId, String transitionName, Map<String, Serializable> workflowContext, boolean waitForCompletion) throws WorkflowException- Throws:
WorkflowException
-
startWorkflowInstance
WorkflowInstance startWorkflowInstance(long companyId, long groupId, long userId, String workflowDefinitionName, Integer workflowDefinitionVersion, String transitionName, Map<String, Serializable> workflowContext) throws WorkflowException- Throws:
WorkflowException
-
startWorkflowInstance
default WorkflowInstance startWorkflowInstance(long companyId, long groupId, long userId, String workflowDefinitionName, Integer workflowDefinitionVersion, String transitionName, Map<String, Serializable> workflowContext, boolean waitForCompletion) throws WorkflowException- Throws:
WorkflowException
-
updateActive
default WorkflowInstance updateActive(long userId, long companyId, long workflowInstanceId, boolean active) throws WorkflowException - Throws:
WorkflowException
-
updateWorkflowContext
WorkflowInstance updateWorkflowContext(long companyId, long workflowInstanceId, Map<String, Serializable> workflowContext) throws WorkflowException- Throws:
WorkflowException
-