public class WorkflowTaskManagerUtil
extends Object
| Constructor and Description |
|---|
WorkflowTaskManagerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static 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 companyId,
long workflowTaskId) |
static List<User> |
getAssignableUsers(long companyId,
long workflowTaskId) |
static List<String> |
getNextTransitionNames(long companyId,
long userId,
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,
Boolean completed) |
static int |
getWorkflowTaskCountByUserRoles(long companyId,
long userId,
long workflowInstanceId,
Boolean completed) |
static int |
getWorkflowTaskCountByWorkflowInstance(long companyId,
Long userId,
long workflowInstanceId,
Boolean completed) |
static WorkflowTaskManager |
getWorkflowTaskManager() |
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 boolean |
hasAssignableUsers(long companyId,
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) |
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) |
void |
setWorkflowTaskManager(WorkflowTaskManager workflowTaskManager) |
static WorkflowTask |
updateDueDate(long companyId,
long userId,
long workflowTaskId,
String comment,
Date dueDate) |
public static WorkflowTask assignWorkflowTaskToRole(long companyId, long userId, long workflowTaskId, long roleId, String comment, Date dueDate, Map<String,Serializable> workflowContext) throws WorkflowException
WorkflowExceptionpublic static WorkflowTask assignWorkflowTaskToUser(long companyId, long userId, long workflowTaskId, long assigneeUserId, String comment, Date dueDate, Map<String,Serializable> workflowContext) throws WorkflowException
WorkflowExceptionpublic static WorkflowTask completeWorkflowTask(long companyId, long userId, long workflowTaskId, String transitionName, String comment, Map<String,Serializable> workflowContext) throws WorkflowException
WorkflowExceptionpublic static WorkflowTask completeWorkflowTask(long companyId, long userId, long workflowTaskId, String transitionName, String comment, Map<String,Serializable> workflowContext, boolean waitForCompletion) throws WorkflowException
WorkflowExceptionpublic static WorkflowTask fetchWorkflowTask(long companyId, long workflowTaskId) throws WorkflowException
WorkflowExceptionpublic static List<User> getAssignableUsers(long companyId, long workflowTaskId) throws WorkflowException
WorkflowExceptionpublic static List<String> getNextTransitionNames(long companyId,
long userId,
long workflowTaskId)
throws WorkflowException
WorkflowExceptionpublic static WorkflowTask getWorkflowTask(long companyId, long workflowTaskId) throws WorkflowException
WorkflowExceptionpublic static int getWorkflowTaskCount(long companyId,
Boolean completed)
throws WorkflowException
WorkflowExceptionpublic static int getWorkflowTaskCountByRole(long companyId,
long roleId,
Boolean completed)
throws WorkflowException
WorkflowExceptionpublic static int getWorkflowTaskCountBySubmittingUser(long companyId,
long userId,
Boolean completed)
throws WorkflowException
WorkflowExceptionpublic static int getWorkflowTaskCountByUser(long companyId,
long userId,
Boolean completed)
throws WorkflowException
WorkflowExceptionpublic static int getWorkflowTaskCountByUserRoles(long companyId,
long userId,
Boolean completed)
throws WorkflowException
WorkflowExceptionpublic static int getWorkflowTaskCountByUserRoles(long companyId,
long userId,
long workflowInstanceId,
Boolean completed)
throws WorkflowException
WorkflowExceptionpublic static int getWorkflowTaskCountByWorkflowInstance(long companyId,
Long userId,
long workflowInstanceId,
Boolean completed)
throws WorkflowException
WorkflowExceptionpublic static WorkflowTaskManager getWorkflowTaskManager()
public static List<WorkflowTask> getWorkflowTasks(long companyId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException
WorkflowExceptionpublic static List<WorkflowTask> getWorkflowTasksByRole(long companyId, long roleId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException
WorkflowExceptionpublic static List<WorkflowTask> getWorkflowTasksBySubmittingUser(long companyId, long userId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException
WorkflowExceptionpublic static List<WorkflowTask> getWorkflowTasksByUser(long companyId, long userId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException
WorkflowExceptionpublic static List<WorkflowTask> getWorkflowTasksByUserRoles(long companyId, long userId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException
WorkflowExceptionpublic static List<WorkflowTask> getWorkflowTasksByWorkflowInstance(long companyId, Long userId, long workflowInstanceId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException
WorkflowExceptionpublic static boolean hasAssignableUsers(long companyId,
long workflowTaskId)
throws WorkflowException
WorkflowExceptionpublic 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
WorkflowExceptionpublic 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
WorkflowExceptionpublic 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
WorkflowExceptionpublic static WorkflowTask updateDueDate(long companyId, long userId, long workflowTaskId, String comment, Date dueDate) throws WorkflowException
WorkflowExceptionpublic void setWorkflowTaskManager(WorkflowTaskManager workflowTaskManager)