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.

 View Only
Expand all | Collapse all

one inbox - multiple tasks

  • 1.  one inbox - multiple tasks

    Posted Wed November 11, 2009 06:52 PM

    How do I get one inbox to return multiple tasks? Currrent looking at a SearchProvider with CustomInboxSearchQuery but it looks like it only supports returning one task - I want it to return all the tasks within a specific project or fixed set of tasks that I can provider taskid’s to.


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


  • 2.  RE: one inbox - multiple tasks

    Posted Thu November 12, 2009 11:57 PM

    Opened a SR and worked with someone who I had being working with previously on an inbox issue and got a quick response on something that is not really documented - here is a code snippet for anyone who needs help on similiar issue:
    private static final String TASK_TYPE_ID1 = “hex value of task” ;//- task1
    private static final String TASK_TYPE_ID2 = “hex value of task” ;// - task2
    private static final String TASK_TYPE_ID3 = “hex value of task” ;// - task3
    String TASK_TYPE_ID_ARRAY = new String {TASK_TYPE_ID1,TASK_TYPE_ID2,TASK_TYPE_ID3};
    public SearchProvider() {

    super(); // task type id to search
    m_searchQuery = new CustomInboxSearchQuery(); 
    getSearchQuery().getTaskTypeID().setOperator("in");
    getSearchQuery().getTaskTypeID().setValue(TASK_TYPE_ID_ARRAY);
    

    The setOperator of the value ‘in’ is like the sql statement evaluation of ‘where in’


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