Searching Indexed Data in a Custom Task Inbox
About this task
When you create a custom task inbox (also known as a task type inbox), you can add a Task Inbox Results portlet to the portlet application to display search results.
For example, you can use the following search provider bindings expressions:
{"#{taskSearchProvider.searchQuery.myField.fields}", "MyIndex"},
{"#{taskSearchProvider.searchQuery.myField.operator}", "="},
{"#{taskSearchProvider.searchQuery.myField.value}",
"#{activePageBean.activeSearchQuery.refineFields[\"myField\"]}"},
where “MyIndex” is the indexed field database name, and “myField” is the search term.
Searching Indexed Data in Multiple Task Inboxes
By default, searches in the custom task inbox are limited to the task type associated with the custom task inbox. If the task type uses a standard search provider, you can configure the Task Inbox Results portlet to search all task types. For more information, see Task Client Option Definitions.
However, if the task type uses an indexed business data search provider, you must use the following procedure to extend the search to other task types.
If you plan to use the “search all task types” feature with task types that have indexed business data, be aware of the following points:
- For consistent search results, all task
types with indexed data must use identical indexed field names.
For example, indexed field names such as
Order_number
,order_number
, andorderNumber
, are seen by the Task Engine as three different fields. A search against any one of them will not include results from the other two fields. Task developers must take care to ensure that indexed field names are consistent across task types. For example:Suppose the task type “OrderClaim” contains a field "OrderZipCode", and the task type “CustomerClaim” contains a field "CustomerZipCode". If you want to search both task types together for the zip code value, you must ensure that these differently named fields have the same index name (such as "ZipCode").
- Similarly, best practices dictate that all indexed data fields of the same name contain information of the same type. For example, an indexed field named SalesPriority might have some entries in numerical format (“3”) and some in text format (“Medium”). For consistent results, avoid this situation.
- If the named indexed data field is used for different field types in other task types, all tasks containing the indexed data field name will be included in the search results, regardless of the field type.
To search for an indexed business data field across multiple task types