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 workflowTaskId) |
static List<User> |
getAssignableUsers(long workflowTaskId) |
static List<String> |
getNextTransitionNames(long companyId,
long userId,
long workflowTaskId) |
static List<User> |
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,
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 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 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) |
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 PortalException
PortalException
public static WorkflowTask completeWorkflowTask(long companyId, long userId, long workflowTaskId, String transitionName, String comment, Map<String,Serializable> workflowContext) throws PortalException
PortalException
public static WorkflowTask completeWorkflowTask(long companyId, long userId, long workflowTaskId, String transitionName, String comment, Map<String,Serializable> workflowContext, boolean waitForCompletion) throws PortalException
PortalException
public static WorkflowTask fetchWorkflowTask(long workflowTaskId) throws WorkflowException
WorkflowException
public static List<User> getAssignableUsers(long workflowTaskId) throws WorkflowException
WorkflowException
public static List<String> getNextTransitionNames(long companyId, long userId, long workflowTaskId) throws WorkflowException
WorkflowException
public static List<User> getNotifiableUsers(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 getWorkflowTaskCountByUserRoles(long companyId, long userId, long workflowInstanceId, Boolean completed) throws WorkflowException
WorkflowException
public static int getWorkflowTaskCountByWorkflowInstance(long companyId, Long userId, long workflowInstanceId, Boolean completed) throws WorkflowException
WorkflowException
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 List<WorkflowTransition> getWorkflowTaskWorkflowTransitions(long workflowTaskId) throws WorkflowException
WorkflowException
public static boolean hasAssignableUsers(long companyId, long workflowTaskId) throws WorkflowException
WorkflowException
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
WorkflowException
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
WorkflowException
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
WorkflowException
public static WorkflowTask updateDueDate(long companyId, long userId, long workflowTaskId, String comment, Date dueDate) throws WorkflowException
WorkflowException