More often than not, we tend to use Save/RestorePipeline service in our flow services for debugging during development.
Is there a way to detect if a package or the services contained in them have a Save/RetorePipeline step (either enabled or disabled).
The intent is to design a service which takes the package name as input and gives the list of services that contain the Save/RestorePipeline service in them.
If you are working on 8.x version, Iād suggest you to use the service property " pipeline Debug" to save/restore the pipelines. This can be switched off at a global level using extended setting property.
Simple! You can right click on those services, and choose the option āFine Dependantsā, which will list all the services that uses it. Or use wm.server.ns.dependency:getDependent and provide the complete namespace of services you want to check for any dependancy.
Note - This is a WmRoot service, and not supported officially. I assume, the intent of your question is to clean up the code, and this is not involved in any actual logic of your interface flow.