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 WorkflowTaskassignWorkflowTaskToRole(long companyId, long userId, long workflowTaskId, long roleId, String comment, Date dueDate, Map<String, Serializable> workflowContext) static WorkflowTaskassignWorkflowTaskToUser(long companyId, long userId, long workflowTaskId, long assigneeUserId, String comment, Date dueDate, Map<String, Serializable> workflowContext) static WorkflowTaskcompleteWorkflowTask(long companyId, long userId, long workflowTaskId, String transitionName, String comment, Map<String, Serializable> workflowContext) static WorkflowTaskcompleteWorkflowTask(long companyId, long userId, long workflowTaskId, String transitionName, String comment, Map<String, Serializable> workflowContext, boolean waitForCompletion) static WorkflowTaskfetchWorkflowTask(long workflowTaskId) getAssignableUsers(long workflowTaskId) getNextTransitionNames(long companyId, long userId, long workflowTaskId) getNotifiableUsers(long workflowTaskId) static WorkflowTaskgetWorkflowTask(long companyId, long workflowTaskId) static intgetWorkflowTaskCount(long companyId, Boolean completed) static intgetWorkflowTaskCountByRole(long companyId, long roleId, Boolean completed) static intgetWorkflowTaskCountBySubmittingUser(long companyId, long userId, Boolean completed) static intgetWorkflowTaskCountByUser(long companyId, long userId, Boolean completed) static intgetWorkflowTaskCountByUserRoles(long companyId, long userId, long workflowInstanceId, Boolean completed) static intgetWorkflowTaskCountByUserRoles(long companyId, long userId, Boolean completed) static intgetWorkflowTaskCountByWorkflowInstance(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 booleanhasAssignableUsers(long companyId, long workflowTaskId) static booleanisNotifiableUser(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 intsearchCount(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 WorkflowTaskupdateDueDate(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
-