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
  • 1.  file name filter usage in filepolling

    Posted Mon June 27, 2011 07:06 AM

    Hi,

    Is it possible to specify more than one file name filter while polling the files from filepolling folder?

    Eg: - My requirement is if the file matches the below criteria, it should get picked up.

    PIX.xml , INV.xml

    I have tried many options but it is not working.

    Thanks and Regards,
    Shriraksha A N


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


  • 2.  RE: file name filter usage in filepolling

    Posted Mon June 27, 2011 10:46 AM

    Hello Shri,

    You can just place *.xml to pick up all the xml files by the file poller. In the processing service you can find the acual name of the file using getTransportInfo service. Then, branch on the filename and execute the required service.

    Cheers,
    Sasanka


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


  • 3.  RE: file name filter usage in filepolling

    Posted Mon June 27, 2011 01:45 PM

    Hi Sasanka,

    Thanks for the reply.

    I wanted to know whether it can be achieved by doing any kind of configuration while creating filepolling port using admin console. I want to pick up only those files which matches the file name filter criteria. As there are mutliple file name patterns needs to be used, is it possible to use any regular expression for this? I have tried with different possibilities but it didn’t work out. Please let me know if you have any idea on this.

    Thanks and Regards,
    Shriraksha A N


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


  • 4.  RE: file name filter usage in filepolling

    Posted Tue July 05, 2011 10:06 AM

    Hi,

    I think 2 file polling port needs to be created as compound conditions are not working as expected.

    port 1 File Name Filter condition [a-zA-Z]PIX[a-zA-Z].zip
    port 2 File Name Filter condition [a-zA-Z]INV[a-zA-Z].zip
    can be used calling the same processing service.

    Thanks,
    Amol.


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


  • 5.  RE: file name filter usage in filepolling

    Posted Wed November 16, 2011 04:49 PM

    Hi,

    you only need one listener with [PIX|INV].xml as filter.


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