Class WorkflowTaskManagerUtil
Object
com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil
- Author:
- Micha Kiener, Shuyang Zhou, Brian Wing Shun Chan, Marcellus Tavares, Raymond Augé
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkflowTask
assignWorkflowTaskToRole
(long companyId, long userId, long workflowTaskId, long roleId, String comment, Date dueDate, Map<String, Serializable> workflowContext) static WorkflowTask
assignWorkflowTaskToUser
(long companyId, long userId, long workflowTaskId, long assigneeUserId, String comment, Date dueDate, Map<String, Serializable> workflowContext) static WorkflowTask
completeWorkflowTask
(long companyId, long userId, long workflowTaskId, String transitionName, String comment, Map<String, Serializable> workflowContext) static WorkflowTask
completeWorkflowTask
(long companyId, long userId, long workflowTaskId, String transitionName, String comment, Map<String, Serializable> workflowContext, boolean waitForCompletion) static WorkflowTask
fetchWorkflowTask
(long workflowTaskId) getAssignableUsers
(long workflowTaskId) getNextTransitionNames
(long companyId, long userId, long workflowTaskId) getNotifiableUsers
(long workflowTaskId) static WorkflowTask
getWorkflowTask
(long companyId, long workflowTaskId) static int
getWorkflowTaskCount
(long companyId, Boolean completed) static int
getWorkflowTaskCountByRole
(long companyId, long roleId, Boolean completed) static int
getWorkflowTaskCountBySubmittingUser
(long companyId, long userId, Boolean completed) static int
getWorkflowTaskCountByUser
(long companyId, long userId, Boolean completed) static int
getWorkflowTaskCountByUserRoles
(long companyId, long userId, long workflowInstanceId, Boolean completed) static int
getWorkflowTaskCountByUserRoles
(long companyId, long userId, Boolean completed) static int
getWorkflowTaskCountByWorkflowInstance
(long companyId, Long userId, long workflowInstanceId, Boolean completed) static List<WorkflowTask>
getWorkflowTasks
(long companyId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) static List<WorkflowTask>
getWorkflowTasksByRole
(long companyId, long roleId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) static List<WorkflowTask>
getWorkflowTasksBySubmittingUser
(long companyId, long userId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) static List<WorkflowTask>
getWorkflowTasksByUser
(long companyId, long userId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) static List<WorkflowTask>
getWorkflowTasksByUserRoles
(long companyId, long userId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) static List<WorkflowTask>
getWorkflowTasksByWorkflowInstance
(long companyId, Long userId, long workflowInstanceId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) static List<WorkflowTransition>
getWorkflowTaskWorkflowTransitions
(long workflowTaskId) static boolean
hasAssignableUsers
(long companyId, long workflowTaskId) static boolean
isNotifiableUser
(long userId, long workflowTaskId) static List<WorkflowTask>
search
(long companyId, long userId, String assetTitle, String[] taskNames, String[] assetTypes, Long[] assetPrimaryKeys, String assigneeClassName, Long[] assigneeUserIds, Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByUserRoles, Long workflowDefinitionId, Long[] workflowInstanceIds, Boolean andOperator, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) static int
searchCount
(long companyId, long userId, String assetTitle, String[] taskNames, String[] assetTypes, Long[] assetPrimaryKeys, String assigneeClassName, Long[] assigneeUserIds, Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByUserRoles, Long workflowDefinitionId, Long[] workflowInstanceIds, Boolean andOperator) searchWorkflowTasks
(long companyId, long userId, String assetTitle, String[] taskNames, String[] assetTypes, Long[] assetPrimaryKeys, String assigneeClassName, Long[] assigneeUserIds, Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByActivatedWorkflowHandlers, Boolean searchByUserRoles, Long workflowDefinitionId, Long[] workflowInstanceIds, Boolean andOperator, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) static WorkflowTask
updateDueDate
(long companyId, long userId, long workflowTaskId, String comment, Date dueDate)
-
Constructor Details
-
WorkflowTaskManagerUtil
public WorkflowTaskManagerUtil()
-
-
Method Details
-
assignWorkflowTaskToRole
public static WorkflowTask assignWorkflowTaskToRole(long companyId, long userId, long workflowTaskId, long roleId, String comment, Date dueDate, Map<String, Serializable> workflowContext) throws WorkflowException- Throws:
WorkflowException
-
assignWorkflowTaskToUser
public static WorkflowTask assignWorkflowTaskToUser(long companyId, long userId, long workflowTaskId, long assigneeUserId, String comment, Date dueDate, Map<String, Serializable> workflowContext) throws PortalException- Throws:
PortalException
-
completeWorkflowTask
public static WorkflowTask completeWorkflowTask(long companyId, long userId, long workflowTaskId, String transitionName, String comment, Map<String, Serializable> workflowContext) throws PortalException- Throws:
PortalException
-
completeWorkflowTask
public static WorkflowTask completeWorkflowTask(long companyId, long userId, long workflowTaskId, String transitionName, String comment, Map<String, Serializable> workflowContext, boolean waitForCompletion) throws PortalException- Throws:
PortalException
-
fetchWorkflowTask
- Throws:
WorkflowException
-
getAssignableUsers
- Throws:
WorkflowException
-
getNextTransitionNames
public static List<String> getNextTransitionNames(long companyId, long userId, long workflowTaskId) throws WorkflowException - Throws:
WorkflowException
-
getNotifiableUsers
- Throws:
WorkflowException
-
getWorkflowTask
public static WorkflowTask getWorkflowTask(long companyId, long workflowTaskId) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowTaskCount
- Throws:
WorkflowException
-
getWorkflowTaskCountByRole
public static int getWorkflowTaskCountByRole(long companyId, long roleId, Boolean completed) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowTaskCountBySubmittingUser
public static int getWorkflowTaskCountBySubmittingUser(long companyId, long userId, Boolean completed) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowTaskCountByUser
public static int getWorkflowTaskCountByUser(long companyId, long userId, Boolean completed) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowTaskCountByUserRoles
public static int getWorkflowTaskCountByUserRoles(long companyId, long userId, Boolean completed) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowTaskCountByUserRoles
public static int getWorkflowTaskCountByUserRoles(long companyId, long userId, long workflowInstanceId, Boolean completed) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowTaskCountByWorkflowInstance
public static int getWorkflowTaskCountByWorkflowInstance(long companyId, Long userId, long workflowInstanceId, Boolean completed) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowTasks
public static List<WorkflowTask> getWorkflowTasks(long companyId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowTasksByRole
public static List<WorkflowTask> getWorkflowTasksByRole(long companyId, long roleId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowTasksBySubmittingUser
public static List<WorkflowTask> getWorkflowTasksBySubmittingUser(long companyId, long userId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowTasksByUser
public static List<WorkflowTask> getWorkflowTasksByUser(long companyId, long userId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowTasksByUserRoles
public static List<WorkflowTask> getWorkflowTasksByUserRoles(long companyId, long userId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowTasksByWorkflowInstance
public static List<WorkflowTask> getWorkflowTasksByWorkflowInstance(long companyId, Long userId, long workflowInstanceId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException - Throws:
WorkflowException
-
getWorkflowTaskWorkflowTransitions
public static List<WorkflowTransition> getWorkflowTaskWorkflowTransitions(long workflowTaskId) throws WorkflowException - Throws:
WorkflowException
-
hasAssignableUsers
public static boolean hasAssignableUsers(long companyId, long workflowTaskId) throws WorkflowException - Throws:
WorkflowException
-
isNotifiableUser
- Throws:
PortalException
-
search
public static List<WorkflowTask> search(long companyId, long userId, String assetTitle, String[] taskNames, String[] assetTypes, Long[] assetPrimaryKeys, String assigneeClassName, Long[] assigneeUserIds, Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByUserRoles, Long workflowDefinitionId, Long[] workflowInstanceIds, Boolean andOperator, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException - Throws:
WorkflowException
-
searchCount
public static int searchCount(long companyId, long userId, String assetTitle, String[] taskNames, String[] assetTypes, Long[] assetPrimaryKeys, String assigneeClassName, Long[] assigneeUserIds, Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByUserRoles, Long workflowDefinitionId, Long[] workflowInstanceIds, Boolean andOperator) throws WorkflowException - Throws:
WorkflowException
-
searchWorkflowTasks
public static WorkflowModelSearchResult<WorkflowTask> searchWorkflowTasks(long companyId, long userId, String assetTitle, String[] taskNames, String[] assetTypes, Long[] assetPrimaryKeys, String assigneeClassName, Long[] assigneeUserIds, Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByActivatedWorkflowHandlers, Boolean searchByUserRoles, Long workflowDefinitionId, Long[] workflowInstanceIds, Boolean andOperator, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException - Throws:
WorkflowException
-
updateDueDate
public static WorkflowTask updateDueDate(long companyId, long userId, long workflowTaskId, String comment, Date dueDate) throws WorkflowException - Throws:
WorkflowException
-