Exception Handling

Hi Team,

I wanted to know how can I get an exception stack trace whenever a service task (inside a subprocess) gives any http error like 404, 500, etc in my boundary event as I want to send that trace as a rest output to my process when the boundary event is hit( I’m using a delegate class when a boundary event is hit). I do not want the trace in the console.

Regards,
Keshav.

Hi Keshav,

As described in the docs you can use the handleStatusCodes field to define the http status codes you want to catch (http://www.flowable.org/docs/userguide/index.html#bpmnHttpTask), and then you can add a boundary error event to catch the error and there are variables being set (when the http task is configured to store them), from which you can get the error reasons, status line etc.

Best regards,

Tijs