webMethods

webMethods

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
  • 1.  Filter Documents from List with an element Id

    Posted Wed March 20, 2013 08:01 AM

    Hi wmUsers,

    I have a scenario where i need to separate certain documents from Doclist. Criteria is based on a field in document which is repeatitive , i need to seperate them. For ex:

    Doc[0]:
    FieldA:100
    FieldB:abc
    FieldC:wqeqw

    Doc[1]:
    FieldA:101
    FieldB:abc
    FieldC:32qqew

    Doc[2]:
    FieldA:100
    FieldB:fafdaf
    FieldC:iuiuii

    Doc[3]:
    FieldA:102
    FieldB:abc
    FieldC:wqeqw

    Doc[1]:
    FieldA:101
    FieldB:trttr
    FieldC:pipioioi

    Result:-------- (Three sets of documents)

    First Set:—
    Doc1[0]:
    FieldA:100
    FieldB:abc
    FieldC:wqeqw

    Doc1[1]:
    FieldA:100
    FieldB:fafdaf
    FieldC:iuiuii

    Second Set:—
    Doc2[0]:
    FieldA:101
    FieldB:abc
    FieldC:32qqew

    Doc2[1]:
    FieldA:101
    FieldB:trttr
    FieldC:pipioioi

    Third Set:----
    Doc3[0]:
    FieldA:102
    FieldB:abc
    FieldC:wqeqw

    Kindly suggest an efficient way to do it. Thanks in advance…

    Regards,
    Niteesh:)


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: Filter Documents from List with an element Id

    Posted Wed March 20, 2013 09:17 AM

    Sorry to disturb. I got the solution by using WmPublic/pub.document:groupDocuments.

    Cheers,
    Niteesh


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Filter Documents from List with an element Id

    Posted Mon June 16, 2014 08:03 AM

    I tried to use this flow but it doesn’t seem to work. I passed a document list as input and also gave the key,(a path from the input document list with pipeline variable substitution. )


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 4.  RE: Filter Documents from List with an element Id

    Posted Tue June 17, 2014 03:34 AM

    Hi swetha,

              Try without providing the key as full path. Give the simple variable name. Example "Employee/Address/HNo"
    

    In this case Key is “HNo” only.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 5.  RE: Filter Documents from List with an element Id

    Posted Tue June 17, 2014 04:11 AM

    Hi Venu,
    Thanks for your input. I was giving the whole path and it did not work. I gave only the key as you suggested and it worked.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 6.  RE: Filter Documents from List with an element Id

    Posted Tue June 17, 2014 04:20 AM