Class WorkflowInstanceManagerUtil
Object
com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil
- Author:
- Micha Kiener, Shuyang Zhou, Brian Wing Shun Chan, Marcellus Tavares, Raymond Augé
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddeleteWorkflowInstance(long companyId, long workflowInstanceId) getNextTransitionNames(long companyId, long userId, long workflowInstanceId) static WorkflowInstancegetWorkflowInstance(long companyId, long workflowInstanceId) static WorkflowInstancegetWorkflowInstance(long companyId, long userId, long workflowInstanceId) static intgetWorkflowInstanceCount(long companyId, Long userId, String[] assetClassNames, Boolean completed) static intgetWorkflowInstanceCount(long companyId, Long userId, String assetClassName, Long assetClassPK, Boolean completed) static intgetWorkflowInstanceCount(long companyId, String workflowDefinitionName, Integer workflowDefinitionVersion, Boolean completed) static List<WorkflowInstance>getWorkflowInstances(long companyId, Long userId, String[] assetClassNames, Boolean completed, int start, int end, OrderByComparator<WorkflowInstance> orderByComparator) static List<WorkflowInstance>getWorkflowInstances(long companyId, Long userId, String assetClassName, Long assetClassPK, Boolean completed, int start, int end, OrderByComparator<WorkflowInstance> orderByComparator) static List<WorkflowInstance>getWorkflowInstances(long companyId, String workflowDefinitionName, Integer workflowDefinitionVersion, Boolean completed, int start, int end, OrderByComparator<WorkflowInstance> orderByComparator) static 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) static intsearchCount(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) static WorkflowInstancesignalWorkflowInstance(long companyId, long userId, long workflowInstanceId, String transitionName, Map<String, Serializable> workflowContext) static WorkflowInstancesignalWorkflowInstance(long companyId, long userId, long workflowInstanceId, String transitionName, Map<String, Serializable> workflowContext, boolean waitForCompletion) static WorkflowInstancestartWorkflowInstance(long companyId, long groupId, long userId, String workflowDefinitionName, Integer workflowDefinitionVersion, String transitionName, Map<String, Serializable> workflowContext) static WorkflowInstancestartWorkflowInstance(long companyId, long groupId, long userId, String workflowDefinitionName, Integer workflowDefinitionVersion, String transitionName, Map<String, Serializable> workflowContext, boolean waitForCompletion) static WorkflowInstanceupdateWorkflowContext(long companyId, long workflowInstanceId, Map<String, Serializable> workflowContext)
-
Constructor Details
-
WorkflowInstanceManagerUtil
public WorkflowInstanceManagerUtil()
-
-
Method Details
-
deleteWorkflowInstance
public static void deleteWorkflowInstance(long companyId, long workflowInstanceId) throws WorkflowException - Throws:
WorkflowException
-
getNextTransitionNames
public static List<String> getNextTransitionNames(long companyId, long userId, long workflowInstanceId) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowInstance
public static WorkflowInstance getWorkflowInstance(long companyId, long workflowInstanceId) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowInstance
public static WorkflowInstance getWorkflowInstance(long companyId, long userId, long workflowInstanceId) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowInstanceCount
public static int getWorkflowInstanceCount(long companyId, Long userId, String assetClassName, Long assetClassPK, Boolean completed) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowInstanceCount
public static int getWorkflowInstanceCount(long companyId, Long userId, String[] assetClassNames, Boolean completed) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowInstanceCount
public static int getWorkflowInstanceCount(long companyId, String workflowDefinitionName, Integer workflowDefinitionVersion, Boolean completed) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowInstances
public static 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
public static List<WorkflowInstance> getWorkflowInstances(long companyId, Long userId, String[] assetClassNames, Boolean completed, int start, int end, OrderByComparator<WorkflowInstance> orderByComparator) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowInstances
public static List<WorkflowInstance> getWorkflowInstances(long companyId, String workflowDefinitionName, Integer workflowDefinitionVersion, Boolean completed, int start, int end, OrderByComparator<WorkflowInstance> orderByComparator) throws WorkflowException - Throws:
WorkflowException
-
search
public static 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
public static 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
public static 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
public static WorkflowInstance signalWorkflowInstance(long companyId, long userId, long workflowInstanceId, String transitionName, Map<String, Serializable> workflowContext) throws WorkflowException- Throws:
WorkflowException
-
signalWorkflowInstance
public static WorkflowInstance signalWorkflowInstance(long companyId, long userId, long workflowInstanceId, String transitionName, Map<String, Serializable> workflowContext, boolean waitForCompletion) throws WorkflowException- Throws:
WorkflowException
-
startWorkflowInstance
public static WorkflowInstance startWorkflowInstance(long companyId, long groupId, long userId, String workflowDefinitionName, Integer workflowDefinitionVersion, String transitionName, Map<String, Serializable> workflowContext) throws WorkflowException- Throws:
WorkflowException
-
startWorkflowInstance
public static WorkflowInstance startWorkflowInstance(long companyId, long groupId, long userId, String workflowDefinitionName, Integer workflowDefinitionVersion, String transitionName, Map<String, Serializable> workflowContext, boolean waitForCompletion) throws WorkflowException- Throws:
WorkflowException
-
updateWorkflowContext
public static WorkflowInstance updateWorkflowContext(long companyId, long workflowInstanceId, Map<String, Serializable> workflowContext) throws WorkflowException- Throws:
WorkflowException
-