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