Boundary error exception details

1
0
-1

Hello,

in case we catch an boundary error event, do we have access to an exception itself? Indeed BPMN notation doesn't specify this, but practicallywe consider this information useful (e.g. to display in the error handling task instead of digging in the logs)

Have fun

Gabriel

1 answer

1
0
-1
This one is the BEST answer!

Hi,

No, there is no information about the exception details. Note that in some cases there will not be a real exception (exception Java with stack trace). Thre are two main ways to throw an BPM Error Event in Bonita:

1) using a End Error Event: in this case there is no exception. The error is throw because in your process design you have decided that if the execution has taken this path, it's an error and some action must be taken (path from boundary catch Error). The only information you have is the error code.

2) during the connector execution you can choose between "put the activity in failed state", "ignore and contine", "throw error event". In the last case a named BPM Error will be thrown but you will not have the information about the Java exception thrown by the connector. If you want you can add a feature request this.

Regards

Comments

Submitted by gusto2 on Thu, 01/23/2014 - 11:32

Thank you for the answer, it makes thinkgs clear(er) :)

Notifications