webMethods

webMethods

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.  Use of ClearPipeline in the flow services

    Posted Tue July 31, 2012 06:10 AM

    Hello There,

    Is it a best practice to use Clear Pipeline in main flow service and also some of util services where we have a bulk of code?

    Did anyone saw any issues using clearPipeline service.

    Many Thanks,
    Veera.


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


  • 2.  RE: Use of ClearPipeline in the flow services

    Posted Tue July 31, 2012 10:46 AM

    Hello,

    Its always advisable to drop the variable whenever they are not used instead of using clearPipeline(). ClearPipeline destroy the existing pipeline and create a new pipeline with the preserve variables, which is not a good practice.

    Regards,
    Sasanka


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


  • 3.  RE: Use of ClearPipeline in the flow services

    Posted Tue July 31, 2012 12:24 PM

    True… Drop variables whenever they are not used… Do not wait untill the last line of code to drop unused ones…


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


  • 4.  RE: Use of ClearPipeline in the flow services

    Posted Tue July 31, 2012 06:00 PM

    I generally avoid clearPipeline for various reasons.

    No issues with clearPipeline per se, but its use tends to encourage sloppy pipeline management. I’ve seen pipelines with so many variables that it makes support a real pain. A good FLOW coding practice is to explicitly drop vars as soon as possible.

    In top-level services, it may be useful to use clearPipeline to help overcome what I call “pipeline litterbugs”. Services that don’t clean up after themselves. This can prevent the litter from getting sent back to the external caller (depending upon the details of the service). But I’d suggest doing this judiciously.


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


  • 5.  RE: Use of ClearPipeline in the flow services

    Posted Wed August 01, 2012 05:45 PM

    Thanks Sasanka, Senthil and Reamon for your inputs.


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