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.


#TechXchangePresenter
 View Only
  • 1.  How to pub.flow:iterator

    Posted Tue July 11, 2023 11:01 AM

    Product/components used and version/fix level:

    webMethods IS 10.15

    Detailed explanation of the problem:

    I am trying to understand how to use How to pub.flow:iterator - it seems to implement a mechanism to slice data; but trying to understand how this is intended to be used.


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


  • 2.  RE: How to pub.flow:iterator

    Posted Wed July 12, 2023 09:31 AM

    Hi Chirag,

    did you check the IS Built-In-Services Reference for documentation?

    This document contains the following Usage Notes for pub.flow:iterator:

    Usage Notes
    The output service signature of the service specified by the serviceName input parameter
    must contain at least one IData array. If there are multiple IData arrays in the output
    signature and the resultSetKey input parameter is not specified, pub.flow:iterator batches the
    first IData array in the pipeline. If there are no IData arrays in the pipeline, pub.flow:iterator
    returns the output all at once instead of in batches.
    The pub.flow:iterator service sends the rest of the pipeline to the service specified by the
    serviceName parameter in the case that multiple calls are required to get all of the data in
    the result set.
    

    The signature of this service is documented there too.

    Regards,
    Holger


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


  • 3.  RE: How to pub.flow:iterator

    Posted Thu September 14, 2023 07:36 AM

    I did see documentation. Will try again.


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


  • 4.  RE: How to pub.flow:iterator

    Posted Thu October 12, 2023 08:07 AM

    Did you manage to get it work. Please let me know if you need help


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


  • 5.  RE: How to pub.flow:iterator

    Posted Thu October 12, 2023 01:50 PM

    Hello @Raghavendra_Korti1 i have not used it successfully yet. If you can share usecase (or a demo service), it would be helpful.


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


  • 6.  RE: How to pub.flow:iterator

    Posted Wed October 25, 2023 06:36 PM

    I was able to identify how to use this.

    • iterator needs to be called in repeat till records are exhausted.
    • iterator calls the service one time only and captures array and returns content in size specified.
    • passing input to the callling service and handlng output requires bit of jugglery .
      the developer may need to think about how to store data and retreive it using service and use iterator to split it.

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