IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Migration from normal TaskSearch to TaskIndexedSearch

  • 1.  Migration from normal TaskSearch to TaskIndexedSearch

    Posted 11/08/11 11:37 AM

    Hi all,

    I am trying to convert the task search implemented in webMethods 7.1.3 into a indexed task search. I tried in several ways, with the same outcome:
    an exception during the search:

    Failed to evaluate binding expression: “#{activePageBean.taskSearchProvider}”

    Search Query string:

    
    {"#{taskSearchProvider.searchQuery.taskTypeID.value}", "task_type_ID"},
    {"#{taskSearchProvider.invocationID}", "#{activePageBean.activeSearchQuery.invocationID}"},
    {"#{taskSearchProvider.rowIdBinding}", "#{row.taskInfo.taskID}"},
    {"#{taskSearchProvider.searchQuery.taskID.value}", "#{activePageBean.activeSearchQuery.refineFields.taskID}"},
    {"#{taskSearchProvider.searchQuery.priority.value}", "#{activePageBean.activeSearchQuery.refineFields[\"priority\"]}"},
    {"#{taskSearchProvider.searchQuery.createdDateRange}", "#{activePageBean.activeSearchQuery.refineFields.createdDateRange}"},
    {"#{taskSearchProvider.searchQuery.modifiedDateRange}", "#{activePageBean.activeSearchQuery.refineFields.modifiedDateRange}"},
    {"#{taskSearchProvider.searchQuery.expirationDateRange}", "#{activePageBean.activeSearchQuery.refineFields.expirationDateRange}"},
    {"#{taskSearchProvider.searchQuery.acceptedByCurrent.value}", "#{activePageBean.activeSearchQuery.refineFields.acceptedByCurrentUser}"},
    {"#{taskSearchProvider.searchQuery.maxResults}", "#{activePageBean.activeSearchQuery.maxResults}"},
    {"#{taskSearchProvider.searchQuery.indexedField.operator}", "="},
    {"#{taskSearchProvider.searchQuery.indexedField.value}", "#{activePageBean.activeSearchQuery.refineFields[\"indexedField\"]}"},
    {"#{taskSearchProvider.searchQuery.recommendedAgent.fieldBinding}", "#{currentTask.taskInfo.customTaskID}"},
    {"#{taskSearchProvider.pagingSize}", "#{activePreferencesBean.initialPageSize}"},
    {"#{taskSearchProvider.searchQuery.indexedField.fields}", "IndexedField"},

    Can anybody advise on a normal path to tackle the problem?

    Thanks in advance.


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 2.  RE: Migration from normal TaskSearch to TaskIndexedSearch

    Posted 11/09/11 07:11 PM

    Please see the attached document from our Task Engine Architect. It should help to clarify the documentation a bit.
    Regards,
    –mark
    Conversion to Indexed Task Search Provider.doc (149 KB)


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 3.  RE: Migration from normal TaskSearch to TaskIndexedSearch

    Posted 11/10/11 05:07 AM

    Hi Mark,

    thank you for the response. I followed the exact steps sequence as described in the document. Nevertheless I tried it again, unfortunately with the same outcome:

    • whenever I open the application and I press the search button the following exception occurs:

       Failed to evaluate binding expression: "#{activePageBean.taskSearchProvider}" (attached snapshot)
      
    • the full stack trace from the MWS console: in StackTrace.txt

    • also attached you can find the SearchQuery.doc → the search query how I have in code, after the query I added also the classes for search provider and custom query

    Another question that appeared while retrying these things, was regarding the returned values of the provider: so if I understood correctly the only returned values are the ones indexed, or only the indexed values that I searched for? The whole TaskInfo, TaskData will not be available?

    Thank you for your time. Looking forward for your feedback.

    Regards,

    Olimpiu

    failed_binding.png
    StackTrace.txt (19.5 KB)


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 4.  RE: Migration from normal TaskSearch to TaskIndexedSearch

    Posted 11/10/11 05:10 AM

    Forgot to attach the SearchQuery, or it seems that doesn’t work for an unknown reason. So here it goes:

    
    
    private static final String[][] TASKSEARCHPROVIDER_PROPERTY_BINDINGS = new String[][] {
    {"#{taskSearchProvider.searchQuery.taskTypeID.value}", "DF342B37-974E-0C67-0C73-DFF7C83BD506"},
    {"#{taskSearchProvider.invocationID}", "#{activePageBean.activeSearchQuery.invocationID}"},
    {"#{taskSearchProvider.rowIdBinding}", "#{row.taskInfo.taskID}"},
    {"#{taskSearchProvider.searchQuery.taskID.value}", "#{activePageBean.activeSearchQuery.refineFields.taskID}"},
    {"#{taskSearchProvider.searchQuery.priority.value}", "#{activePageBean.activeSearchQuery.refineFields[\"priority\"]}"},
    {"#{taskSearchProvider.searchQuery.createdDateRange}", "#{activePageBean.activeSearchQuery.refineFields.createdDateRange}"},
    {"#{taskSearchProvider.searchQuery.modifiedDateRange}", "#{activePageBean.activeSearchQuery.refineFields.modifiedDateRange}"},
    {"#{taskSearchProvider.searchQuery.expirationDateRange}", "#{activePageBean.activeSearchQuery.refineFields.expirationDateRange}"},
    {"#{taskSearchProvider.searchQuery.acceptedByCurrent.value}", "#{activePageBean.activeSearchQuery.refineFields.acceptedByCurrentUser}"},
    {"#{taskSearchProvider.searchQuery.maxResults}", "#{activePageBean.activeSearchQuery.maxResults}"},
    {"#{taskSearchProvider.searchQuery.recommendedAgent.operator}", "#{activePageBean.activeSearchQuery.refineFields[\"myField.operator\"]}"},
    {"#{taskSearchProvider.searchQuery.myField.value}", "#{MailboxInboxResultsDefaultviewView.myField}"},
    {"#{taskSearchProvider.searchQuery.myField.fields}", "MyIndex"},
    {"#{taskSearchProvider.searchQuery.myField2.operator}", "="},
    {"#{taskSearchProvider.searchQuery.myField2.value}", "#{activePageBean.activeSearchQuery.refineFields[\"myField2\"]}"},
    {"#{taskSearchProvider.searchQuery.mandatory.fields}", "MyIndex2"},
    {"#{taskSearchProvider.pagingSize}", "#{activePreferencesBean.initialPageSize}"},
    };
    
    Classes:
    
    public class TaskSearchProvider extends com.webmethods.caf.faces.data.task.impl.TaskInboxIndexedSearchContentProvider 
    public class CustomInboxSearchQuery extends com.webmethods.caf.faces.data.task.impl.TaskInboxIndexedSearchContentProvider.InboxSearchQuery
    
    
    
    

    SearchQuery.doc (28.5 KB)


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 5.  RE: Migration from normal TaskSearch to TaskIndexedSearch

    Posted 11/14/11 06:32 PM

    Probably the best bet is to file an SR, because this will likely affect others as well. Thanks for you doing this.
    Regards,
    –mark


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 6.  RE: Migration from normal TaskSearch to TaskIndexedSearch

    Posted 11/15/11 05:20 AM

    Opened incident with SAG. Incident number:5062577. It will provide the outcome of the discussion.


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 7.  RE: Migration from normal TaskSearch to TaskIndexedSearch

    Posted 11/29/11 02:58 PM

    Hi Mark,

    iTrac WTN-1880 has been opened for this issue. Kindly check if I miss something.


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 8.  RE: Migration from normal TaskSearch to TaskIndexedSearch

    Posted 08/27/14 10:21 AM

    I’m also having the same problem. Where you able to fix this issue?


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 9.  RE: Migration from normal TaskSearch to TaskIndexedSearch

    Posted 07/06/18 04:38 PM

    Hello Experts,

    Im getting the error "Failed to evaluate binding expression: “#{activePageBean.taskSearchProvider}” while checking my task inbox under MWS<Monitoring<Business<Tasks.
    (Upgraded from BPM 9.5 to 10.1)
    Thanks in advance.

    Thanks,
    Lavanya.


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 10.  RE: Migration from normal TaskSearch to TaskIndexedSearch

    Posted 09/17/20 04:10 AM

    Continuing the discussion from Migration from normal TaskSearch to TaskIndexedSearch:

    Hello,

    Is there any idea on how to do - pub.task.taskclient:searchTasksIndexed with multiple TaskType ID’s. can anyone please help


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine


  • 11.  RE: Migration from normal TaskSearch to TaskIndexedSearch

    Posted 11/05/20 02:46 AM

    As per the documentation: “You can search for multiple task types in a single query by specifying multiple taskTypeID values when you define the search criteria.
    Delimiter is comma ( , )
    For example:

    “Fields”: [
    “taskTypeID”
    ],
    “Operator”: “in”,
    “Value”:[“A2031C29-371D-54C9-AFE3-A887FE6E9438”,“D3598581-14E3-FDD5-82B6-EC507A0CCCE2”]


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 12.  RE: Migration from normal TaskSearch to TaskIndexedSearch

    Posted 11/05/20 05:31 AM

    Hi,

    I tried using , seperator. when used like that, Task data is coming as empty. PFA

    IndexedSearch_screeshots.docx (53.2 KB)


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 13.  RE: Migration from normal TaskSearch to TaskIndexedSearch

    Posted 11/05/20 06:55 AM

    Try to add it as another term:
    image


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine


  • 14.  RE: Migration from normal TaskSearch to TaskIndexedSearch

    Posted 11/05/20 08:35 AM

    No tasks found

    No Tasks are showing response when specified task type ID in another term. please help.

    Thanks,


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 15.  RE: Migration from normal TaskSearch to TaskIndexedSearch

    Posted 11/05/20 08:59 AM

    Hi,

    what about using Operator ‘=’ when using multiple terms?

    Or apply the comma-separated list of taskIDs in the value field of the single taskID-term?

    Regards,
    Holger


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine


  • 16.  RE: Migration from normal TaskSearch to TaskIndexedSearch

    Posted 11/06/20 05:38 AM

    Thank you! It worked and getting task data for multiple task id’s.


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine