|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bea.wli.worklist.api.TaskSelector
TaskSelector is used to select tasks based on specific properties.
A value for querying can be set against interested properties. If the value is not null, it will be used to filter tasks. Null values and empty arrays (applicable in case of String and String[]) will not be used for filtering.
If multiple querying conditions are specified, only the tasks fulfilling all the conditions will be selected. This selector also allows the results to be sorted in ascending or descending order.
To search for tasks without assignees, use an Assignee object without user or group. Note that if Assignee is part of sorting criteria, only tasks with assignees will be returned.
For sorting the results, use the setSortByXXX(short order) methods. The order parameter indicates the precedence of the sort criteria as well as sorting in descending order or ascending order.
A negative order parameter will result in descending sort order, while a positive parameter will result in ascending sort order.
The absolute value of the order parameter denotes the relative precedence of the sort criteria. A smaller absolute value indicates that the criteria be sorted first.
The following example illustrates the usage:
This means that the tasks will be sorted first by priority in ascending order, followed by sorting on task names
in descending order. If the same order parameter is given to multiple criteria, the relative sort order among the
criteria is not guaranteed. If the order parameter given is Short.MAX_VALUE, then the criteria will not take effect at all.setSortByPriority((short)1);
setSortByTaskName((short)-2);
Some special criteria accept wildcard characters:
% stands for any sequence of characters, _ stands for any single character.
You can escape these characters using \. i.e. %a_b\%%
| Constructor Summary | |
TaskSelector()
Construct a new empty task selector. |
|
TaskSelector(String[] taskIds,
String taskName,
boolean isNamePattern,
String description,
boolean isDescriptionPattern,
String comment,
boolean isCommentPattern,
String[] owners,
String[] claimants,
Assignee assignee,
Integer minPriority,
Integer maxPriority,
StateType[] stateTypes,
String parentProcessUri,
boolean isParentProcessUriPattern,
String[] parentProcessIds,
String listeningProcessUri,
boolean isListeningProcessUriPattern,
String[] listeningProcessIds,
Date completionDueDateBefore,
Date completionDueDateAfter,
Date claimDueDateBefore,
Date claimDueDateAfter,
Date creationDateBefore,
Date creationDateAfter,
Boolean canBeReassigned,
Boolean canBeReturned,
Boolean canBeAborted,
String[] propertyNames,
String[] propertyValues,
boolean[] isPropertyValuePattern)
Construct a new task selector. |
|
TaskSelector(String[] taskIds,
String taskName,
boolean isNamePattern,
String description,
boolean isDescriptionPattern,
String comment,
boolean isCommentPattern,
String[] owners,
String[] claimants,
Assignee assignee,
Integer minPriority,
Integer maxPriority,
StateType[] stateTypes,
String parentProcessUri,
boolean isParentProcessUriPattern,
String[] parentProcessIds,
String listeningProcessUri,
boolean isListeningProcessUriPattern,
String[] listeningProcessIds,
Date completionDueDateBefore,
Date completionDueDateAfter,
Date claimDueDateBefore,
Date claimDueDateAfter,
Date creationDateBefore,
Date creationDateAfter,
Boolean canBeReassigned,
Boolean canBeReturned,
Boolean canBeAborted,
String[] propertyNames,
String[] propertyValues,
boolean[] isPropertyValuePattern,
boolean includeTaskRequest,
boolean includeTaskResponse)
Construct a new task selector. |
|
TaskSelector(String[] taskIds,
String taskName,
boolean isNamePattern,
String description,
boolean isDescriptionPattern,
String comment,
boolean isCommentPattern,
String[] owners,
String[] claimants,
Assignee assignee,
Integer minPriority,
Integer maxPriority,
StateType[] stateTypes,
String parentProcessUri,
boolean isParentProcessUriPattern,
String[] parentProcessIds,
String listeningProcessUri,
boolean isListeningProcessUriPattern,
String[] listeningProcessIds,
Date completionDueDateBefore,
Date completionDueDateAfter,
Date claimDueDateBefore,
Date claimDueDateAfter,
Date creationDateBefore,
Date creationDateAfter,
Boolean canBeReassigned,
Boolean canBeReturned,
Boolean canBeAborted,
String[] propertyNames,
String[] propertyValues,
boolean[] isPropertyValuePattern,
boolean includeTaskRequest,
boolean includeTaskResponse,
boolean includeTaskProperties)
Construct a new task selector. |
|
TaskSelector(String[] taskIds,
String taskName,
boolean isNamePattern,
String description,
boolean isDescriptionPattern,
String comment,
boolean isCommentPattern,
String[] owners,
String[] claimants,
Assignee assignee,
Integer minPriority,
Integer maxPriority,
StateType[] stateTypes,
String parentProcessUri,
boolean isParentProcessUriPattern,
String[] parentProcessIds,
String listeningProcessUri,
boolean isListeningProcessUriPattern,
String[] listeningProcessIds,
Date completionDueDateBefore,
Date completionDueDateAfter,
Date claimDueDateBefore,
Date claimDueDateAfter,
Date creationDateBefore,
Date creationDateAfter,
Boolean canBeReassigned,
Boolean canBeReturned,
Boolean canBeAborted,
String propertyName,
String propertyValue,
boolean isPropertyValuePattern)
Construct a new task selector. |
|
TaskSelector(String[] taskIds,
String taskName,
boolean isNamePattern,
String description,
boolean isDescriptionPattern,
String comment,
boolean isCommentPattern,
String[] owners,
String[] claimants,
Assignee assignee,
Integer minPriority,
Integer maxPriority,
StateType[] stateTypes,
String parentProcessUri,
boolean isParentProcessUriPattern,
String[] parentProcessIds,
String listeningProcessUri,
boolean isListeningProcessUriPattern,
String[] listeningProcessIds,
Date completionDueDateBefore,
Date completionDueDateAfter,
Date claimDueDateBefore,
Date claimDueDateAfter,
Date creationDateBefore,
Date creationDateAfter,
Boolean canBeReassigned,
Boolean canBeReturned,
Boolean canBeAborted,
String propertyName,
String propertyValue,
boolean isPropertyValuePattern,
boolean includeTaskRequest,
boolean includeTaskResponse)
Construct a new task selector. |
|
TaskSelector(String[] taskIds,
String taskName,
boolean isNamePattern,
String description,
boolean isDescriptionPattern,
String comment,
boolean isCommentPattern,
String[] owners,
String[] claimants,
Assignee assignee,
Integer minPriority,
Integer maxPriority,
StateType[] stateTypes,
String parentProcessUri,
boolean isParentProcessUriPattern,
String[] parentProcessIds,
String listeningProcessUri,
boolean isListeningProcessUriPattern,
String[] listeningProcessIds,
Date completionDueDateBefore,
Date completionDueDateAfter,
Date claimDueDateBefore,
Date claimDueDateAfter,
Date creationDateBefore,
Date creationDateAfter,
Boolean canBeReassigned,
Boolean canBeReturned,
Boolean canBeAborted,
String propertyName,
String propertyValue,
boolean isPropertyValuePattern,
boolean includeTaskRequest,
boolean includeTaskResponse,
boolean includeTaskProperties)
Construct a new task selector. |
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TaskSelector()
public TaskSelector(String[] taskIds,
String taskName,
boolean isNamePattern,
String description,
boolean isDescriptionPattern,
String comment,
boolean isCommentPattern,
String[] owners,
String[] claimants,
Assignee assignee,
Integer minPriority,
Integer maxPriority,
StateType[] stateTypes,
String parentProcessUri,
boolean isParentProcessUriPattern,
String[] parentProcessIds,
String listeningProcessUri,
boolean isListeningProcessUriPattern,
String[] listeningProcessIds,
Date completionDueDateBefore,
Date completionDueDateAfter,
Date claimDueDateBefore,
Date claimDueDateAfter,
Date creationDateBefore,
Date creationDateAfter,
Boolean canBeReassigned,
Boolean canBeReturned,
Boolean canBeAborted,
String propertyName,
String propertyValue,
boolean isPropertyValuePattern)
taskIds - The unique Task identifierstaskName - The task nameisNamePattern - true if name is a pattern, else falsedescription - the task descriptionisDescriptionPattern - true if description is a pattern, else falsecomment - the task commentisCommentPattern - true if comment is a pattern, else falseowners - The task ownerclaimants - the task claimantassignee - the task assigneeminPriority - the minimum prioritymaxPriority - the max prioritystateTypes - the statesparentProcessUri - The parent process.isParentProcessUriPattern - true if parent process uri is a pattern, else falseparentProcessIds - The parent process idlisteningProcessUri - The listening processisListeningProcessUriPattern - true if listening process uri is a pattern, else falselisteningProcessIds - the listening process idscompletionDueDateBefore - Completion due date beforecompletionDueDateAfter - Completion due date afterclaimDueDateBefore - Claim due date beforeclaimDueDateAfter - Claim due date aftercanBeReassigned - true if task can be re-assigned, else falsecanBeReturned - true if task can be returned, else falsecanBeAborted - true if task can be aborted, else falsepropertyName - a task property namepropertyValue - a task property valueisPropertyValuePattern - true if property value is a pattern, else false
public TaskSelector(String[] taskIds,
String taskName,
boolean isNamePattern,
String description,
boolean isDescriptionPattern,
String comment,
boolean isCommentPattern,
String[] owners,
String[] claimants,
Assignee assignee,
Integer minPriority,
Integer maxPriority,
StateType[] stateTypes,
String parentProcessUri,
boolean isParentProcessUriPattern,
String[] parentProcessIds,
String listeningProcessUri,
boolean isListeningProcessUriPattern,
String[] listeningProcessIds,
Date completionDueDateBefore,
Date completionDueDateAfter,
Date claimDueDateBefore,
Date claimDueDateAfter,
Date creationDateBefore,
Date creationDateAfter,
Boolean canBeReassigned,
Boolean canBeReturned,
Boolean canBeAborted,
String[] propertyNames,
String[] propertyValues,
boolean[] isPropertyValuePattern)
taskIds - The unique Task identifierstaskName - The task nameisNamePattern - true if name is a pattern, else falsedescription - the task descriptionisDescriptionPattern - true if description is a pattern, else falsecomment - the task commentisCommentPattern - true if comment is a pattern, else falseowners - The task ownerclaimants - the task claimantassignee - the task assigneeminPriority - the minimum prioritymaxPriority - the max prioritystateTypes - the statesparentProcessUri - The parent process.isParentProcessUriPattern - true if parent process uri is a pattern, else falseparentProcessIds - The parent process idlisteningProcessUri - The listening processisListeningProcessUriPattern - true if listening process uri is a pattern, else falselisteningProcessIds - the listening process idscompletionDueDateBefore - Completion due date beforecompletionDueDateAfter - Completion due date afterclaimDueDateBefore - Claim due date beforeclaimDueDateAfter - Claim due date aftercanBeReassigned - true if task can be re-assigned, else falsecanBeReturned - true if task can be returned, else falsecanBeAborted - true if task can be aborted, else falsepropertyNames - an array of task property namespropertyValues - an array of task property valuesisPropertyValuePattern - an array of booleans declaring whether propertyValue is a pattern
public TaskSelector(String[] taskIds,
String taskName,
boolean isNamePattern,
String description,
boolean isDescriptionPattern,
String comment,
boolean isCommentPattern,
String[] owners,
String[] claimants,
Assignee assignee,
Integer minPriority,
Integer maxPriority,
StateType[] stateTypes,
String parentProcessUri,
boolean isParentProcessUriPattern,
String[] parentProcessIds,
String listeningProcessUri,
boolean isListeningProcessUriPattern,
String[] listeningProcessIds,
Date completionDueDateBefore,
Date completionDueDateAfter,
Date claimDueDateBefore,
Date claimDueDateAfter,
Date creationDateBefore,
Date creationDateAfter,
Boolean canBeReassigned,
Boolean canBeReturned,
Boolean canBeAborted,
String propertyName,
String propertyValue,
boolean isPropertyValuePattern,
boolean includeTaskRequest,
boolean includeTaskResponse)
taskIds - The unique Task identifierstaskName - The task nameisNamePattern - true if name is a pattern, else falsedescription - the task descriptionisDescriptionPattern - true if description is a pattern, else falsecomment - the task commentisCommentPattern - true if comment is a pattern, else falseowners - The task ownerclaimants - the task claimantassignee - the task assigneeminPriority - the minimum prioritymaxPriority - the max prioritystateTypes - the statesparentProcessUri - The parent process.isParentProcessUriPattern - true if parent process uri is a pattern, else falseparentProcessIds - The parent process idlisteningProcessUri - The listening processisListeningProcessUriPattern - true if listening process uri is a pattern, else falselisteningProcessIds - the listening process idscompletionDueDateBefore - Completion due date beforecompletionDueDateAfter - Completion due date afterclaimDueDateBefore - Claim due date beforeclaimDueDateAfter - Claim due date aftercanBeReassigned - true if task can be re-assigned, else falsecanBeReturned - true if task can be returned, else falsecanBeAborted - true if task can be aborted, else falsepropertyName - a property namepropertyValue - a property valueisPropertyValuePattern - an array of booleans declaring whether propertyValue is a patternincludeTaskRequest - include the Task Request data in the query responseincludeTaskResponse - include the Task Response data in the query response
public TaskSelector(String[] taskIds,
String taskName,
boolean isNamePattern,
String description,
boolean isDescriptionPattern,
String comment,
boolean isCommentPattern,
String[] owners,
String[] claimants,
Assignee assignee,
Integer minPriority,
Integer maxPriority,
StateType[] stateTypes,
String parentProcessUri,
boolean isParentProcessUriPattern,
String[] parentProcessIds,
String listeningProcessUri,
boolean isListeningProcessUriPattern,
String[] listeningProcessIds,
Date completionDueDateBefore,
Date completionDueDateAfter,
Date claimDueDateBefore,
Date claimDueDateAfter,
Date creationDateBefore,
Date creationDateAfter,
Boolean canBeReassigned,
Boolean canBeReturned,
Boolean canBeAborted,
String[] propertyNames,
String[] propertyValues,
boolean[] isPropertyValuePattern,
boolean includeTaskRequest,
boolean includeTaskResponse)
taskIds - The unique Task identifierstaskName - The task nameisNamePattern - true if name is a pattern, else falsedescription - the task descriptionisDescriptionPattern - true if description is a pattern, else falsecomment - the task commentisCommentPattern - true if comment is a pattern, else falseowners - The task ownerclaimants - the task claimantassignee - the task assigneeminPriority - the minimum prioritymaxPriority - the max prioritystateTypes - the statesparentProcessUri - The parent process.isParentProcessUriPattern - true if parent process uri is a pattern, else falseparentProcessIds - The parent process idlisteningProcessUri - The listening processisListeningProcessUriPattern - true if listening process uri is a pattern, else falselisteningProcessIds - the listening process idscompletionDueDateBefore - Completion due date beforecompletionDueDateAfter - Completion due date afterclaimDueDateBefore - Claim due date beforeclaimDueDateAfter - Claim due date aftercanBeReassigned - true if task can be re-assigned, else falsecanBeReturned - true if task can be returned, else falsecanBeAborted - true if task can be aborted, else falsepropertyNames - an array of task property namespropertyValues - an array of task property valuesisPropertyValuePattern - an array of booleans declaring whether propertyValue is a patternincludeTaskRequest - include the Task Request data in the query responseincludeTaskResponse - include the Task Response data in the query response
public TaskSelector(String[] taskIds,
String taskName,
boolean isNamePattern,
String description,
boolean isDescriptionPattern,
String comment,
boolean isCommentPattern,
String[] owners,
String[] claimants,
Assignee assignee,
Integer minPriority,
Integer maxPriority,
StateType[] stateTypes,
String parentProcessUri,
boolean isParentProcessUriPattern,
String[] parentProcessIds,
String listeningProcessUri,
boolean isListeningProcessUriPattern,
String[] listeningProcessIds,
Date completionDueDateBefore,
Date completionDueDateAfter,
Date claimDueDateBefore,
Date claimDueDateAfter,
Date creationDateBefore,
Date creationDateAfter,
Boolean canBeReassigned,
Boolean canBeReturned,
Boolean canBeAborted,
String propertyName,
String propertyValue,
boolean isPropertyValuePattern,
boolean includeTaskRequest,
boolean includeTaskResponse,
boolean includeTaskProperties)
taskIds - The unique Task identifierstaskName - The task nameisNamePattern - true if name is a pattern, else falsedescription - the task descriptionisDescriptionPattern - true if description is a pattern, else falsecomment - the task commentisCommentPattern - true if comment is a pattern, else falseowners - The task ownerclaimants - the task claimantassignee - the task assigneeminPriority - the minimum prioritymaxPriority - the max prioritystateTypes - the statesparentProcessUri - The parent process.isParentProcessUriPattern - true if parent process uri is a pattern, else falseparentProcessIds - The parent process idlisteningProcessUri - The listening processisListeningProcessUriPattern - true if listening process uri is a pattern, else falselisteningProcessIds - the listening process idscompletionDueDateBefore - Completion due date beforecompletionDueDateAfter - Completion due date afterclaimDueDateBefore - Claim due date beforeclaimDueDateAfter - Claim due date aftercanBeReassigned - true if task can be re-assigned, else falsecanBeReturned - true if task can be returned, else falsecanBeAborted - true if task can be aborted, else falsepropertyName - a task property namepropertyValue - a task property valueisPropertyValuePattern - Do we u