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 Renaming: Does WebMethods do this automatically??

    Posted 05/18/04 09:57 AM

    When we get in a flat file, we have file polling set up to run a certain flow. When it moves this file from the working directory to either the done or the error directory the filename has been changed.

    There is a prefix which has been placed on it which says: “FilePolling.[5DigitSequenceNumber].”

    So my question is; If WebMethod automatically does this behind the scenes; is there a way to shut it off so it does not change the file name?

    Thanks,

    Blaise
    Christopher.Blaise@domtar.com


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 2.  RE: File Renaming: Does WebMethods do this automatically??

    Posted 05/19/04 09:43 AM

    I spent a bit of time yesterday coming up with a unix shell script to automatically rename the files in the error directory - you can use it do do the same for the done directory (if you’re on unix)

    #!/usr/bin/ksh

    cd /path/to/poll/error
    for currentFile in $(ls); do
    newfile=echo $currentFile | sed 's/^FilePolling.[0-9]*.//g'
    echo $currentFile “::” $newfile
    mv /path/to/poll/error/$currentFile /path/to/poll/error/$newfile
    done


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 3.  RE: File Renaming: Does WebMethods do this automatically??

    Posted 05/20/04 07:02 AM

    Thanks Greg,

    someone from webMethods did write to me and wrote that this ‘renaming’ "should be something within the webMethods code. :~)

    I appreciate you sharing the code!

    Thanks again,

    blaise


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: File Renaming: Does WebMethods do this automatically??

    Posted 01/23/06 04:11 PM

    Hey mate

    Did you get this working?

    I really need this as I need to use the renamed file name in a service and with this stupid prefix I can never know what it is


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: File Renaming: Does WebMethods do this automatically??

    Posted 04/23/07 11:50 AM

    I would suggest,

    Do the file file polling for that directory and use “pub.flow:getTransportInfo” to get file name.


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods