I have an Activiti workflow in my project. It contains several service tasks which perform not trivial logic and may fail due to multiple reasons.
I deploy Activiti as a REST standalone application.
When I call the Activiti REST API and it fails with some error it returns "500 Internal Server Error" without any details and to get the problem cause I need to check the logs.
I tried to store problem cause in process variables and to check these variables with an additional request after failure but it seems to be not right because this error may be overridden with consequent requests. (Concurrency issues)
So, could you please advise how to get the service task problem cause using Activiti REST API? It would be great to do it without additional requests.