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 |
fetchWorkflowTask(long companyId,
long workflowTaskId) |
static List<String> |
getNextTransitionNames(long companyId,
long userId,
long workflowTaskId) |
static long[] |
getPooledActorsIds(long companyId,
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 |
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 |
hasOtherAssignees(long workflowTaskInstanceId,
long userId) |
static List<WorkflowTask> |
search(long companyId,
long userId,
String keywords,
Boolean completed,
Boolean searchByUserRoles,
int start,
int end,
OrderByComparator<WorkflowTask> orderByComparator) |
static List<WorkflowTask> |
search(long companyId,
long userId,
String keywords,
String[] assetTypes,
Boolean completed,
Boolean searchByUserRoles,
int start,
int end,
OrderByComparator<WorkflowTask> orderByComparator) |
static List<WorkflowTask> |
search(long companyId,
long userId,
String taskName,
String assetType,
Long[] assetPrimaryKey,
Date dueDateGT,
Date dueDateLT,
Boolean completed,
Boolean searchByUserRoles,
boolean andOperator,
int start,
int end,
OrderByComparator<WorkflowTask> orderByComparator) |
static int |
searchCount(long companyId,
long userId,
String keywords,
Boolean completed,
Boolean searchByUserRoles) |
static int |
searchCount(long companyId,
long userId,
String keywords,
String[] assetTypes,
Boolean completed,
Boolean searchByUserRoles) |
static int |
searchCount(long companyId,
long userId,
String taskName,
String assetType,
Long[] assetPrimaryKey,
Date dueDateGT,
Date dueDateLT,
Boolean completed,
Boolean searchByUserRoles,
boolean andOperator) |
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
WorkflowException
public static WorkflowTask assignWorkflowTaskToUser(long companyId, long userId, long workflowTaskId, long assigneeUserId, String comment, Date dueDate, Map<String,Serializable> workflowContext) throws WorkflowException
WorkflowException
public static WorkflowTask completeWorkflowTask(long companyId, long userId, long workflowTaskId, String transitionName, String comment, Map<String,Serializable> workflowContext) throws WorkflowException
WorkflowException
public static WorkflowTask fetchWorkflowTask(long companyId, long workflowTaskId) throws WorkflowException
WorkflowException
public static List<String> getNextTransitionNames(long companyId, long userId, long workflowTaskId) throws WorkflowException
WorkflowException
public static long[] getPooledActorsIds(long companyId, long workflowTaskId) throws WorkflowException
WorkflowException
public static WorkflowTask getWorkflowTask(long companyId, long workflowTaskId) throws WorkflowException
WorkflowException
public static int getWorkflowTaskCount(long companyId, Boolean completed) throws WorkflowException
WorkflowException
public static int getWorkflowTaskCountByRole(long companyId, long roleId, Boolean completed) throws WorkflowException
WorkflowException
public static int getWorkflowTaskCountBySubmittingUser(long companyId, long userId, Boolean completed) throws WorkflowException
WorkflowException
public static int getWorkflowTaskCountByUser(long companyId, long userId, Boolean completed) throws WorkflowException
WorkflowException
public static int getWorkflowTaskCountByUserRoles(long companyId, long userId, Boolean completed) throws WorkflowException
WorkflowException
public static int getWorkflowTaskCountByWorkflowInstance(long companyId, Long userId, long workflowInstanceId, Boolean completed) throws WorkflowException
WorkflowException
public static WorkflowTaskManager getWorkflowTaskManager()
public static List<WorkflowTask> getWorkflowTasks(long companyId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException
WorkflowException
public static List<WorkflowTask> getWorkflowTasksByRole(long companyId, long roleId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException
WorkflowException
public static List<WorkflowTask> getWorkflowTasksBySubmittingUser(long companyId, long userId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException
WorkflowException
public static List<WorkflowTask> getWorkflowTasksByUser(long companyId, long userId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException
WorkflowException
public static List<WorkflowTask> getWorkflowTasksByUserRoles(long companyId, long userId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException
WorkflowException
public static List<WorkflowTask> getWorkflowTasksByWorkflowInstance(long companyId, Long userId, long workflowInstanceId, Boolean completed, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException
WorkflowException
public static boolean hasOtherAssignees(long workflowTaskInstanceId, long userId) throws WorkflowException
WorkflowException
public static List<WorkflowTask> search(long companyId, long userId, String keywords, Boolean completed, Boolean searchByUserRoles, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException
WorkflowException
public static List<WorkflowTask> search(long companyId, long userId, String taskName, String assetType, Long[] assetPrimaryKey, Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByUserRoles, boolean andOperator, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException
WorkflowException
public static List<WorkflowTask> search(long companyId, long userId, String keywords, String[] assetTypes, Boolean completed, Boolean searchByUserRoles, int start, int end, OrderByComparator<WorkflowTask> orderByComparator) throws WorkflowException
WorkflowException
public static int searchCount(long companyId, long userId, String keywords, Boolean completed, Boolean searchByUserRoles) throws WorkflowException
WorkflowException
public static int searchCount(long companyId, long userId, String taskName, String assetType, Long[] assetPrimaryKey, Date dueDateGT, Date dueDateLT, Boolean completed, Boolean searchByUserRoles, boolean andOperator) throws WorkflowException
WorkflowException
public static int searchCount(long companyId, long userId, String keywords, String[] assetTypes, Boolean completed, Boolean searchByUserRoles) throws WorkflowException
WorkflowException
public static WorkflowTask updateDueDate(long companyId, long userId, long workflowTaskId, String comment, Date dueDate) throws WorkflowException
WorkflowException
public void setWorkflowTaskManager(WorkflowTaskManager workflowTaskManager)