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.  general flow question

    Posted Thu June 21, 2007 11:19 PM

    i am relatively new to flow and am trying to debug a large piece of flow code by tracing it through step by step.

    The input to the particular piece of code is an xml file, from which varibles are extracted. Is there any way of running the app which is passing the xml file, saving the contents of the pipeline at the start of the process and then loading them up within the flow editor so that I can trace through the values of the variables? I am told that there is.

    Sorry if there is an obvious answer for this.

    Thanks


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


  • 2.  RE: general flow question

    Posted Fri June 22, 2007 12:25 AM

    Yes. Look at the descriptions for pub.flow:savePipelineToFile and pub.flow:restorePipelineFromFile. Put save as your first step and then run the app to submit the XML doc. Then disable the save, and put in a restore. Then you can step through the service multiple times.

    This is a common debugging/troubleshooting technique. You’ll end up using it a lot.


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


  • 3.  RE: general flow question

    Posted Fri June 22, 2007 03:33 PM

    Tedfish,

    What do you mean when you say that the “input to the particular piece of code is an xml file”? Is it a file name, a stream or array of bytes, or is it an XML node object?

    If the latter, then another way that you can test the service is by going to Test in the menu and then clicking on Send XML File… (all the way at the bottom). A dialog box pops up asking you if you want to Trace or Step through the code and then another dialog box allows you to browse for an XML file on your computer to send through the service. This tool will automatically convert the XML file to an XML node and it will feed it to your service.

    • Percio

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