I am trying to build a simple process in BAW that is supposed to work as follows:The process calls a service flow. When an error is detected in the service flow, the error is caught by the process, printed to the logs and then the process ends on an Error End Event so that the process instance status is set to 'Failed'. Here is how it looks like:Catching the error and printing it to the logs works as expected but when the process reaches the Error End Event and the process instance is set to failed, the instance error details shown in Process Inspector always say "No error message". Only the error code specified for the Error End Event is correctly reflected in the details:
No matter what data or data type I hand over as Error Data in the Error Mapping section of the Error End Event properties, the output in Process Inspector is always the same: "No error message".Can anyone tell me how I could get the error message contained in my Error Data object into the instance error details displayed in Process Inspector?If it is not possible at all, I would like to understand why. Thanks in advance for your help!
Hi Atanu,thanks for your reply.I think the reason why it seems to work in your scenario is that you do not really catch the thrown runtime error. As you can see, the custom error code you defined ('MyErrorCode') is not mentioned in the Process Inspector's error details.
The uncaught error will still lead to a failed process instance and in such scenarios (uncaught runtime errors), there is indeed an error message in Process Inspector. However, it never works for custom errors defined on an Error End Event in a process.Surprisingly, if I take my sample process and use it as a linked process within another process, the enclosing process can catch and consume the custom error code AND custom error message delivered by the linked process via the Error End Event. Only Process Inspector is apparently not capable of consuming the custom error message. I think this is a product deficiency.Best regardsGregor