Am trying to print the names of services invoked in a FlowService using a java program. Am able to print the names of services using below code:
import com.wm.app.b2b.server.InvokeState;
...
...
...
InvokeState invkState = InvokeState.getCurrentState();
//below line prints all service names which are invoked in a flow service
System.out.println(invkState.getCallStack());
However, when am using transformers and trying to invoke a custom service (which I created), the above code doesn’t print the services which are invoked via transformer. And if, I happened to use a pub service, then it displays service name but not in the case of custom service.
Have attached image for better understanding.
Any inputs would be highly appreciated.

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