How to extract the name of a failed service from the error dump?

The last error document has a field called “service”, but this field returns the name of the failed step(e.g: pub.flow:divideInts in case of a divide by 0 error), but I want to retrieve the fully qualified name of the parent flow service, i.e. the service in which this error (say divide by 0) has occurred.

Is there any way by which we can retrieve the name of the failed service from the error dump field that is found inside the last error document ?

Thanks & Regards,
Anwit

Please see my reply to your question on your other thread about this issue: [url]How to extract the name of a failed service from the error dump? - webMethods - Software AG Tech Community & Forums.

 You can use the below java code to get the service name


 StackTraceElement[] stacktrace = Thread.currentThread().getStackTrace();
 StackTraceElement e = stacktrace[1];
 String methodName = e.getMethodName();
 System.out.println(methodName);