I’m working with some error handling in Camunda Modeler, where I am using “Error Boundary Event”. To trigger this I am using the function bpmnError. I’m trying to extract information about what went wrong when the bpmnError is triggered, but having issues understanding how to get the error code or message.
I have read in documentation that bpmnError is suppose to return a context, which I have tried to get the values from, without any luck.
A simplified flow for what I am doing looks like:
For the “Get Object”, it looks like:
The process works and executes as I expect it to. The only problem is that I am not able to extract any kind of error message or code. I would like to know these to be able to some different things in the process in the future.
It seems like if the GET request fails then I am never able to get any kind information from the result expression, which leaves me wondering how I am suppose to get what the error response was.
As can be seen in this image:
It only works because myResponseStatus is null, hence we will trigger the bpmnError. But I am not able to get any get any kind of information of what actually went wrong.
My Camunda modeler is 8.7, and I am using Camunda/zeebe 8.3.1, and therefore the 3rd argument which is described in the documentation is not an option for me as I believe that requiers 8.5.8 or greater.
Any input how I could extract the error code and message would be greatly appreciated. Thank you for your time!