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.  Utility code for debugging your flow services

    Posted Sat March 01, 2014 03:04 AM

    Hi All,

    When we try to debug flow services we use the below services:

    WmPublic/pub.flow:savePipelineToFile
    WmPublic/pub.flow:restorePipelineFromFile

    We usually disable and enable the above services while debugging the flow logic. I think this is not a good practice :lol:

    And also we have a flow step properties called pipeline debug in wM 8.2 and above (you can still use that if you wish)

    Here is a very simple sample code that can be used for debugging.

    Note: Make sure you pass the same fileName as input to savePipelineToFile and restorePipelineFromFile

    input: debug
    ouput: NA

    Flow logic:

    Branch on /debug:
    $null: pub.flow.restorePipelineFromFile
    $default: pub.flow.savePipelineToFile

    PFA screen shot;

    Let me know if anyone has questions :lol:

    Before you move your code to PROD make sure you remove this lines of code.


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Utility code for debugging your flow services

    Posted Thu September 03, 2015 08:54 AM

    No need to do add this code. Just save pipeline will do. you can restore the pipeline at runtime by right click–restore from local/server under result tab… :smiley:


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Utility code for debugging your flow services

    Posted Thu September 03, 2015 02:28 PM

    Hi,

    we have created a Service saveOrRestorePipeline for this.
    The service uses property files to control if the feature is enabled or disabled at all.

    Each project which uses this service is able to disable the feature for its own scope (mainly used in production) or to save the pipelines (default for dev and test). This is also handled by property files (project specific).

    Due to this it is always possible to capture the data whenever needed by modifying property files only without the requirement to modify the real code.

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Utility code for debugging your flow services

    Posted Fri September 04, 2015 04:47 AM

    Yes I know its also a way to do it :smiley: . And also from version 8.2 you can use pipeline debug propertry for debuging flow service.

    And also thanks for reading and commenting.


    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Utility code for debugging your flow services

    Posted Thu September 17, 2015 04:42 AM

    In some case, pipeline debug property doesn’t work. The service is executed definitely, but pipeline is not saved. :smiley:


    #webMethods
    #Integration-Server-and-ESB