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.  Flow service to parse Excel formatted file?

    Posted Wed July 24, 2019 01:42 PM

    I’m using webMethods 10.4. My task is to parse an .xlsx file (NOT a CSV file) and separate parts of it into other files. I want to verify there is no built in webMethods flow service that helps with this. Is the best solution here to create my own Java flow service and then use a library like Apache’s POI to help parse my file?


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


  • 2.  RE: Flow service to parse Excel formatted file?

    Posted Wed July 24, 2019 09:08 PM

    Yes, no built in services to parse content in xlsx format. It’s not supported OOTB, you will need Apache POI to do so.


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


  • 3.  RE: Flow service to parse Excel formatted file?

    Posted Thu July 25, 2019 02:28 PM

    I understand in order to do this I need to add the POI jar files into the Integration Server’s lib directory. Is there any way when the artifact is packaged and redeployed to another server (e.g. promoted to QA) that this can be done automatically? When building with Maven or Gradle, a build script automatically packages dependencies. I’m trying to avoid extra work for the sys admins (e.g. manually copying files to directories)


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


  • 4.  RE: Flow service to parse Excel formatted file?

    Posted Thu July 25, 2019 03:22 PM

    Hi Dave,

    best thing would be to place the jars under code/jars directory of your package which provides access to the poi classes.

    In this case the jars will be deployed together with the package when a full package deployment is used.

    Regards,
    Holger


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


  • 5.  RE: Flow service to parse Excel formatted file?

    Posted Thu July 25, 2019 10:41 PM

    Hi Dave,

    What explained by Holger was the right strategy.


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


  • 6.  RE: Flow service to parse Excel formatted file?

    Posted Fri July 26, 2019 10:18 AM

    There are some sample Excel handler packages on the community explore them if it does not suit your requirement I can draft a java service for you :slight_smile:


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