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
  • 1.  File Polling result handling

    Posted 10/05/11 10:19 PM

    We have set up a port for file polling. A service is called when a file is dropped in the configured folder.

    The question is “what determines which folder the file get moved to on completion? It either goes to the done or error folder.” Right now all our files go to the done folder. How do we make it go to the error folder?


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


  • 2.  RE: File Polling result handling

    Posted 10/06/11 12:12 AM


  • 3.  RE: File Polling result handling

    Posted 10/06/11 02:05 PM

    How do you do that? Is there a service to call to create a failure? Or do you return a special parameter from the called service?


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


  • 4.  RE: File Polling result handling



  • 5.  RE: File Polling result handling

    Posted 10/06/11 02:25 PM

    Easiest way (and sufficient here). Insert an exit step with exit flow and signal failure.

    Alternative for throwing errors: pub.flow:throwExceptionForRetry

    This enables calling the service from within a repeat step which repeats on error.

    Please look into Developer_Users_Guide for more Details.

    Martin


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


  • 6.  RE: File Polling result handling

    Posted 10/06/11 02:59 PM

    Thanks very much Martin for your quick and concise answer.

    That worked. :slight_smile: Thanks again.


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