Package com.sas.lsaf.workflow.task
Class TaskQuery
java.lang.Object
com.sas.lsaf.workflow.task.TaskQuery
- All Implemented Interfaces:
Serializable
The class that contains the criteria to query process flow tasks.
- Since:
- 2.4
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe valid values for the assignee type that describes the method to search for user task assignees. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the task assignees in which to search for process flow tasks, based on the task assignment.Gets whether to search for the process flow tasks that are assigned to the current user, a specific set of users, or all users.Gets the context paths in which to search for process flow tasks.Gets the process flow task element identifier to query.Gets the start date of the date range to query process flow tasks, based on the due date.intgetLimit()Gets the maximum number of process flow tasks to return.getName()Gets the process flow task name to query.Gets the task priority by which to query the process flow tasks.Gets the name of the process flow in which to search for tasks.Gets the status of the process flow task in which to query.Gets the end date of the date range to query process flow tasks based on due date.voidsetAssignees(Set<String> assignees) Sets the task assignees in which to search for process flow tasks.voidsetAssigneeType(TaskQuery.AssigneeType assigneeType) Sets whether to search for the process flow tasks that are assigned to the current user, a specific set of users, or all users.voidsetContextPaths(Set<String> contextPaths) Sets the context paths in which to search for process flow tasks.voidsetElementId(String elementId) Sets the process flow task element identifier to query.voidsetFromDueDate(Date fromDueDate) Sets the start date of the date range to query process flow tasks, based on the due date.voidsetLimit(int limit) Sets the maximum number of process flow tasks to return.voidSets the process flow task name to query.voidsetPriority(Task.Priority priority) Sets the task priority by which to query the process flow tasks.voidsetProcessFlowName(String processFlowName) Sets the name of the process flow in which to search for tasks.voidsetStatus(Task.TaskStatus status) Sets the status of the process flow task in which to query.voidsetToDueDate(Date toDueDate) Sets the end date of the date range to query process flow tasks, based on the due date.toString()
-
Constructor Details
-
TaskQuery
public TaskQuery()Constructor.
-
-
Method Details
-
getStatus
Gets the status of the process flow task in which to query.- Returns:
- The status of the process flow task in which to query.
-
setStatus
Sets the status of the process flow task in which to query.- Parameters:
status- The status.
-
getElementId
Gets the process flow task element identifier to query.- Returns:
- The process flow task element identifier to query.
-
setElementId
Sets the process flow task element identifier to query.- Parameters:
elementId- The process flow task element.
-
getName
Gets the process flow task name to query.- Returns:
- The process flow task name to query.
-
setName
Sets the process flow task name to query.- Parameters:
name- Sets the process flow name to query.
-
getProcessFlowName
Gets the name of the process flow in which to search for tasks.- Returns:
- The name.
-
setProcessFlowName
Sets the name of the process flow in which to search for tasks.- Parameters:
processFlowName- The name of the process flow in which to search for tasks.
-
getContextPaths
Gets the context paths in which to search for process flow tasks.- Returns:
- The context paths.
-
setContextPaths
Sets the context paths in which to search for process flow tasks.- Parameters:
contextPaths- The context paths in which to search for process flow tasks.
-
getAssignees
Gets the task assignees in which to search for process flow tasks, based on the task assignment.- Returns:
- The task assignees.
-
setAssignees
Sets the task assignees in which to search for process flow tasks. The maximum number of assignees is 10.- Parameters:
assignees- The task assignees by which to search for process flow tasks.
-
getFromDueDate
Gets the start date of the date range to query process flow tasks, based on the due date.- Returns:
- The start date of the date range.
-
setFromDueDate
Sets the start date of the date range to query process flow tasks, based on the due date.- Parameters:
fromDueDate- The start date of the date range to query process flow tasks, based on the due date.
-
getToDueDate
Gets the end date of the date range to query process flow tasks based on due date.- Returns:
- The end date of the date range to query process flow tasks based on due date.
-
setToDueDate
Sets the end date of the date range to query process flow tasks, based on the due date.- Parameters:
toDueDate- The end date of the date range to query process flow tasks, based on the due date.
-
getPriority
Gets the task priority by which to query the process flow tasks.- Returns:
- The task priority.
-
setPriority
Sets the task priority by which to query the process flow tasks.- Parameters:
priority- The task priority by which to query the process flow tasks.
-
getLimit
public int getLimit()Gets the maximum number of process flow tasks to return.- Returns:
- The limit The maximum number of process flow tasks to return.
-
setLimit
public void setLimit(int limit) Sets the maximum number of process flow tasks to return.- Parameters:
limit- The maximum number of process flow tasks to return.
-
getAssigneeType
Gets whether to search for the process flow tasks that are assigned to the current user, a specific set of users, or all users. If searching a specific set of users, you must specify users by callingsetAssignees(Set).- Returns:
- Whether to search for process flow tasks assigned to current user, a specific set of users, or all users.
-
setAssigneeType
Sets whether to search for the process flow tasks that are assigned to the current user, a specific set of users, or all users. If searching a specific set of users, you must specify users by callingsetAssignees(Set).- Parameters:
assigneeType- The method to search for the process flow tasks.
-
toString
-