How we can obtain the context of the business process programmatically?
We want to implement a feedback feature in which the user can submit a feedback at any where. What we want to achieve is to attach the context (what is the current screen, which point in the process, etc) into the feedback.
I found out a way to (somehow) close to what we expect:
StringBuilder fullContextBuilder = new StringBuilder();
for (IIvyThreadLocal threadlocal : IvyThreadContext.getIvyThreadLocals()) {
fullContextBuilder.append(threadlocal).append("\n");
}
Ivy.log().error(fullContextBuilder.toString());
However, the `IIvyThreadLocal` and `IvyThreadContext` are not `@PublicAPI` so we could not rely on them.
Is there a public API which can help me to obtain the context of the business process (something like what printed in the log file for an exception)?
**UPDATE**
(It seems I was still ambiguous about what the process context mean)
The process context here means what is the current dialog and the context when the feedback submittet. What is the route (dialogs to dialogs) that the user has accessed before submitting the feedback.
The idea is something similar to what is printed in the Ivy Server log file. I started to digg into the `Logger` and `ExceptionUtil` which I experimented as the snippet above.
Thanks & Regards