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

Filepolling Concept - using try catch Sequence

  • 1.  Filepolling Concept - using try catch Sequence

    Posted Thu July 01, 2021 03:30 AM

    Hi All,

    I am working on Filepolling concept using webMethods integration tool and the file polling is working fine without using try-catch sequence mechanism like if any error happens the file is moving directly to error directory. But when i use try-catch sequence mechanism and implement it then i am facing an issue that the invalid file also directly moving to done directory.

    As per the filepolling concept the file should be moved to error directory, so can you please any gave me idea that how can i get solve the issue. Is there any properties or configurations need to be set.

    Thanks,
    Surya.


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Filepolling Concept - using try catch Sequence

    Posted Thu July 01, 2021 03:48 AM

    Hi Surya,
    the concept of the file polling mechanism is that if the defined processing service is exiting with failure (i.e. Exception), then the incoming file is put to error directory, and if not it is moved from working directory to done directory. Catching your error let the service finish normally. So if you want the file being placed in error dir you should, as the last Flow Step in the CATCH block, call EXIT Step (EXIT with FAILURE, exit $flow, maybe set %lastError/error% as the error code, if you called pub.flow:getLastError as the first step in the CATCH block).


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Filepolling Concept - using try catch Sequence

    Posted Fri July 02, 2021 02:20 AM

    Hi @sagcskah,

    Thanks for the solution and the issue is resolved. The file polling concept is working fine now as per the theoretical part.

    Thanks,
    Surya.


    #webMethods
    #Integration-Server-and-ESB